Documentation ¶
Index ¶
- func AddRequestFields(r *http.Request, keyvals ...interface{})
- func Debug() *zerolog.Event
- func Error() *zerolog.Event
- func Fatal() *zerolog.Event
- func FromCtx(ctx context.Context) *zerolog.Logger
- func Info() *zerolog.Event
- func Logger() zerolog.Logger
- func NewHandler() func(http.Handler) http.Handler
- func Panic() *zerolog.Event
- func Trace() *zerolog.Event
- func Warn() *zerolog.Event
- func WithContext(ctx context.Context) context.Context
- func WithLevel(l Level)
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRequestFields ¶ added in v0.7.1
AddRequestFields adds the list of key-value pairs to the request context
func NewHandler ¶
NewHandler assigns the log to the context of each request
func WithContext ¶ added in v0.3.0
WithContext adds the default logger to the specified context
Types ¶
Click to show internal directories.
Click to hide internal directories.