package
0.0.0-20240901130656-3f6710173eae
Repository: https://github.com/relabs-tech/kurbisio.git
Documentation: pkg.go.dev
# Functions
AddRequestID adds a logger with a new request ID if no logger exits yet for the context.
ContextWithEmptyLogger returns a new context with a logger if the given context has no logger yet.
ContextWithLogger returns a new context with a logger.
ContextWithLoggerFromData returns a context with a logger.
ContextWithLoggerIdentity returns a new context with a logger and identity.
Default returns a logger without a request ID.
FromContext returns the logger from the context.
InitLogger sets up the custom time formatter for all log statements.
RequestIDFromContext returns the request id for the given context.
SerializeLoggerContext extracts the logger from the context and returns a json representation of the relevant parameters.