logger

package
v0.106.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultLogger

func NewDefaultLogger(service string) zerolog.Logger

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

func NewWithWriter(cf *shared.LoggerConfigFile, service string, w io.Writer) zerolog.Logger

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL