Documentation ¶
Overview ¶
Package loggy provides a simple logging library for Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Tracef(string, ...interface{}) Infof(string, ...interface{}) Warnf(string, ...interface{}) Errorf(string, ...interface{}) }
A Logger is used to write log lines.
There are four methods for outputting a log message, each being associated with a different degree of urgency.
type Printer ¶
type Printer interface {
Printf(string, ...interface{})
}
A Printer is anything that can be used to Printf log messages.
The default underlying implementation of Logger provided by the loggy package defers to the standard library log package, which in turn provides an implementation of Printer that writes to an output file.
Click to show internal directories.
Click to hide internal directories.