Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextualField ¶
type Logger ¶
func EnrichLogger ¶
func EnrichLogger(log Logger, debug bool, fields ...ContextualField) Logger
Returns a copy of provided `log` with additional contextual fields. If `debug` is true, a returning logger will be configured to `zerolog.DebugLevel` level.
func Setup ¶
func Setup(debug bool, fields ...ContextualField) Logger
Returns a copy of default `zerolog.Logger` with specified contextual fields. If `debug` is true, a returning logger will be configured to `zerolog.DebugLevel` level.
Click to show internal directories.
Click to hide internal directories.