Registry / logging / go-pkgz-lgr

go-pkgz-lgr

JSON →
library0.12.3gogounverified

Package lgr provides a simple logger with leveled output, debug/trace filtering, and support for ERROR, FATAL, and PANIC levels.

go get github.com/go-pkgz/lgr
INSTALL
IMPORT
SIG · GO-PKGZ-LGR
G
go-pkgz-lgr
logginggov0.12.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lgr
github.com/go-pkgz/lgr

Creates a logger with debug and caller info enabled.

package main import ( "github.com/go-pkgz/lgr" ) func main() { log := lgr.New(lgr.Debug, lgr.CallerFile, lgr.Msec) log.Logf("INFO some message") log.Logf("DEBUG debug message") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
28
Resources
go-pkgz-lgr — go get go-pkgz-lgr · libregistry