package
0.4.0
Repository: https://github.com/neticdk/go-common.git
Documentation: pkg.go.dev

# Functions

Error returns an [slog.Attr] for an [error].
FromContext retrieves logger from the given context.
NewJSONTraceIDHandler creates new [slog.JSONHandler] which adds a `TraceID` attribute to all loggings if trace id is present.
WithLogger returns a context containing a reference to the given logger.