Skip to content

Stackdriver Logging / GCP Cloud Logging handler for the go 1.21 slog package.

License

Notifications You must be signed in to change notification settings

jussi-kalliokoski/slogdriver

Repository files navigation

slogdriver

GoDoc CI status

Stackdriver Logging / GCP Cloud Logging handler for go the slog package for structured logging introduced in the standard library of go 1.21.

NOTE: slogdriver requires go 1.21.

Design Goals

  • Improved performance compared to using the JSONHandler with ReplaceAttr to achieve the same purpose. This is achieved by using goldjson under the hood.
  • Batteries included, e.g. builtin support for labels and traces. The trace information still needs to be provided separately as the library is agnostic as to which telemetry libraries (or versions) you choose to use. It is still highly advised to use OpenTelemetry.
  • Minimal dependencies.

About

Stackdriver Logging / GCP Cloud Logging handler for the go 1.21 slog package.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages