Documentation ¶
Index ¶
- Variables
- func FromContext(ctx context.Context) zerolog.Logger
- func InitContextLogger(ctx context.Context, lvl zerolog.Level, opts ...LoggingOpt) context.Context
- func InitLogger(lvl zerolog.Level, opts ...LoggingOpt) zerolog.Logger
- func LogLevelFromEnv() zerolog.Level
- func UsePrettyLogger(log zerolog.Logger) zerolog.Logger
- type LoggingOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogger zerolog.Logger = log.With().Logger()
Functions ¶
func InitContextLogger ¶
func InitLogger ¶ added in v0.0.8
func InitLogger(lvl zerolog.Level, opts ...LoggingOpt) zerolog.Logger
func LogLevelFromEnv ¶
Types ¶
type LoggingOpt ¶
func WithField ¶ added in v0.0.3
func WithField(key string, value interface{}) LoggingOpt
Click to show internal directories.
Click to hide internal directories.