Documentation
¶
Overview ¶
Package log provides a simple pluggable logging interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
Tracef(string, ...interface{})
Debugf(string, ...interface{})
Infof(string, ...interface{})
Warnf(string, ...interface{})
Errorf(string, ...interface{})
}
Logger interface should be implemented by the logging library you wish to use
var Log Logger
Log can be assigned a proper logger, such as logrus configured to your liking.
type StdLog ¶
type StdLog struct {
Logger
}
StdLog is a simplistic logger for rig
Click to show internal directories.
Click to hide internal directories.