Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultLogger ¶
func NewStdErr ¶
func NewStdErr(cf *shared.LoggerConfigFile, service string) zerolog.Logger
NewStdErr creates a logger that writes to os.Stderr, unless the config carries a runtime writer override (cf.Writer), in which case output is routed there instead.
func NewWithWriter ¶ added in v0.106.11
NewWithWriter creates a logger that writes to w in the configured format (console or json). The explicit writer always wins: any cf.Writer override is ignored. w must be non-nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.