Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
// Println calls Output to print to the standard logger. Arguments are handled
// in the manner of fmt.Println.
Println(...interface{})
// Printf calls Output to print to the standard logger. Arguments are handled
// in the manner of fmt.Printf.
Printf(string, ...interface{})
}
Logger is reco logger.
var ( // Std is standard logger. It writes outputs to stdout. Std Logger = &logger{writer: os.Stdout} // Info is info logger. It writes output to stderr with prefix. Info Logger = &logger{writer: os.Stderr, prefix: prefix} // Error is error logger. It writes output to stderr with error prefix. Error Logger = &logger{writer: os.Stderr, prefix: errPrefix} )
Click to show internal directories.
Click to hide internal directories.