Documentation ¶
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
}
Logger is a multi-level logger, supporting trace, info, warning and error levels that can be enabled/disabled independently.
func New ¶
New returns a new logger instance configured with the given destination for each level. Setting any destination to nil will disable the logging (log will be sent to ioutil.Discard). Common destinations are os.Stdout and os.Stderr.
func (*Logger) ERROR ¶
ERROR logs error messages, used to report actual issues that might need to be fixed.
func (*Logger) INFO ¶
INFO logs informational messages, used for reporting back informational messages that are generally useful.
Click to show internal directories.
Click to hide internal directories.