Logging library for golang projects.
logger := consolelog.NewConsoleLogger("")
log.AddLogger(logger)
log.Info("info message")
log.Info("info message with parameters: %d", 100)
log.Error("error: %s", "an error")
Logger | Description | Dependency |
---|---|---|
Console | Logs everything to Stderr | None |
Sentry | Logs errors, panics and fatals to Sentry | raven-go |
Stream | Logs everything to io.Stream | None |
TimedRotating | Logs everything to rolling files | lumberjack |
MIT