Documentation
¶
Index ¶
Constants ¶
View Source
const LoggerCtxKey ctxKeyLogger = 0
LoggerCtxKey is the key that holds the unique logger ID in a context.
Variables ¶
View Source
var ( // ErrNoLoggerInContext is an error that's returned in case we try // to fetch logger from a context and it's not existing there ErrNoLoggerInContext = errors.New("logger cannot be found in context") )
Functions ¶
func GetContext ¶
GetContext returns a zerolog.Logger from a context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.