Package Usage: go: github.com/go-pkgz/lgr
Package lgr provides a simple logger with some extras. Primary way to log is Logf method.
The logger's output can be customized in 2 ways:
Leveled output works for messages based on text prefix, i.e. Logf("INFO some message") means INFO level.
Debug and trace levels can be filtered based on lgr.Trace and lgr.Debug options.
ERROR, FATAL and PANIC levels send to err as well. FATAL terminate caller application with os.Exit(1)
and PANIC also prints stack trace.
28 versions
Latest release: almost 2 years ago
87 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/go-pkgz/lgr