Documentation
¶
Overview ¶
Package logger provides a thin wrapper around zerolog so that other internal packages do not import zerolog directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger wraps zerolog.Logger.
func FromContext ¶
FromContext extracts the Logger from ctx, returning Nop() if absent.
func Setup ¶
Setup creates a configured Logger based on level and format strings. Supported levels: debug, info, warn, error. Supported formats: json, pretty.
func (Logger) Fatal ¶
Fatal starts a new message with fatal level. The message will call os.Exit(1) after being sent.
Click to show internal directories.
Click to hide internal directories.