Documentation
¶
Overview ¶
Package log intends to be an extremely simple, lightweight logging library with only what is necessary for decent logging in most golang programs
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultLogger = New(os.Stdout)
DefaultLogger is a logger mounted to Stdout.
Functions ¶
func Debug ¶
func Debug(message string)
Debug is a convenience method mounted to DefaultLogger to Logger.Debug.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf is a convenience method mounted to DefaultLogger to Logger.Debugf.
func Info ¶
func Info(message string)
Info is a convenience method mounted to DefaultLogger to Logger.Info.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the structure which makes up a place to log.
func NewMultiLogger ¶
NewMultiLogger is a convenience function to log to multiple sources. This is equivalent to calling New and passing in the result from io.MultiWriter.
func (*Logger) Debug ¶
Debug writes a basic debug-level message to the logger, then a newline. The message will only write if you have called Logger.SetDebug with true.
func (*Logger) Debugf ¶
Debugf writes a formatted debug-level message to the logger, then a newline. The message will only write if you have called Logger.SetDebug with true.