Documentation ¶
Overview ¶
Provides a simple logging interface for console applications.
No log level configuration, log line support, file output, etc. is supported. But the logs automatically apply coloring to formatted elements in Printf() like statements, which is easy to use and looks nice.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
A Logger is an object for logging to the console. An application would usually want to instanciate this once, using NewLogger(), and then use that instance throughout its application to log.
Logger implements Writer to allow attaching it to other logging modules' outputs.
func (*Logger) Error ¶
Logs with Error severity.
Output still goes to stdout, but there is a red "[ERROR]" in the output.