# README
go-log
Simple printf-style logger which is more or less the same as Go's core logger with log levels.
View the docs.
Example
log.Debug("something")
log.Emergency("hello %s %s", "tobi", "ferret")
l := log.New(os.Stderr, log.DEBUG, "")
l.Debug("something happened")
l.Info("hello %s", "Tobi")
l.Error("boom something exploded")
Conventions
Typically you'll want to "inherit" from a parent logger, this allows for setting changes at the root of your application to trickle down.
To do this you can use Logger.New(prefix string
, for example here
a child logger is created by calling .New()
on the standard logger:
var log = log.Log.New("mylib")
License
MIT
# Functions
Alert log.
Check if there's an `err` and exit, useful for bootstrapping.
Critical log.
Debug log.
Emergency log.
Error log.
Info log.
New logger which writes to `w` at the given `level`.
Notice log.
SetLevel wrapper.
SetLevelString wrapper.
SetPrefix wrapper.
Warning log.
# Variables
No description provided by the author
# Type aliases
Level.