There was an error while loading. Please reload this page.
The simplest way to use bdlm/log is with the exported package logger:
bdlm/log
package main import ( log "github.com/bdlm/log" ) func main() { log.WithFields(log.Fields{ "animal": "walrus", }).Info("A walrus appears") }
Available log method families are Debug, Info, Warn (or Warning), Error, Panic (recoverable), and Fatal.
Debug
Info
Warn
Warning
Error
Panic
Fatal
Home Sample script
Simple usage Customization Environments
Standard fields Structured fields Logging levels Testing
Secrets Multiple outputs io.Writer Fatal handlers Hooks
Standard Formatting * Customization * Verbose Output Custom formatters TTY Color Customization