Package log provides a logging backend, based around the go-logging package.
Backend is a log backend.
New initializes a logging backend.
GetGoLogger returns a per-module Go runtime *log.Logger that writes to the backend. Due to limitations of the Go runtime log package, only one level is supported per returned Logger.
GetLevel returns the logging level for the specified module as per the logging.Leveled interface.
GetLogWriter returns a per-module io.Writer that writes to the backend at the provided level.
GetLogger returns a per-module logger that writes to the backend.
IsEnabledFor returns true if the logger is enabled for the given level. We use this function as part of our implementation of the logging.Leveled interface.
Log is used to log a message as per the logging.Backend interface.
Rotate simply reopens the log file for writing and should be used to implement log rotation where this is invoked upon HUP signal for example.
SetLevel sets the logging level for the specified module. The module corresponds to the string specified in GetLogger. We use this function as part of our implementation of the logging.Leveled interface.