This page links to projects that use or enhance slog
, the proposed structured logging package for the standard library, accepted for Go 1.21.
A preliminary implementation is at golang.org/x/exp/slog. That won't be receiving any more updates; instead, follow the src/log/slog
directory of the main Go repo.
Since slog has been in flux for several months, some of these resources may be out of date and may not build. The API did not change that much, though, so fixes should be straightforward.
slog
: https://github.com/justinsb/experiments-slogslog.Handler
for Datadog: https://github.com/samber/slog-datadogslog.Handler
for Rollbar: https://github.com/samber/slog-rollbarslog.Handler
for Sentry: https://github.com/samber/slog-sentryslog.Handler
for Syslog: https://github.com/samber/slog-syslogslog.Handler
for Logstash: https://github.com/samber/slog-logstashslog.Handler
for Fluentd: https://github.com/samber/slog-fluentdslog.Handler
for Graylog: https://github.com/samber/slog-graylogslog.Handler
for Loki: https://github.com/samber/slog-lokislog.Handler
for Slack: https://github.com/samber/slog-slackslog.Handler
for Telegram: https://github.com/samber/slog-telegramslog.Handler
for Mattermost: https://github.com/samber/slog-mattermostslog.Handler
for Microsoft Teams: https://github.com/samber/slog-microsoft-teamsslog.Handler
for Webhook: https://github.com/samber/slog-webhookslog.Handler
for Kafka: https://github.com/samber/slog-kafkaslog.Handler
(pipeline, fanout, ...): https://github.com/samber/slog-multi