Registry / logging / getlantern-golog

getlantern-golog

JSON →
library0.0.0-20230503153817-8e72de7e0a65gogounverified

A logging library that sends errors to stderr and debug/trace messages to stdout with optional stack traces.

go get github.com/getlantern/golog
INSTALL
IMPORT
SIG · GETLANTERN-GOLOG
G
getlantern-golog
logginggov0.0.0-20230503153817-8e72de7e0a65
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.

golog
github.com/getlantern/golog

Create a logger and log debug and error messages.

package main import "github.com/getlantern/golog" var log = golog.LoggerFor("example") func main() { log.Debug("This is a debug message") log.Error("This is an error message") }
Debug
Known issues
gotchaTrace logging requires a linker flag or environment variable to be enabled.
fix
Set the environment variable GOLOG_TRACE=true or use -ldflags to enable trace output.
affects: >=0.0.0
Upgrade
Version history
0.0.0-20230503153817-8e72de7e0a65latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
44 hits · last 30 days
node
40
Amazon
1
OpenAI (training)
1
Resources
getlantern-golog — go get getlantern-golog · libregistry