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 holds the output destination that the log entries will be written to, the minimum severity level that log entries will be written for, and a mutex for concurrent writes.
func Default ¶ added in v0.0.3
func Default() *Logger
Default write to stdout with the minimum level set to LevelDebug.
func (*Logger) Debug ¶ added in v0.0.3
Debug writes a log entry at LevelDebug to the output destination.
func (*Logger) Err ¶ added in v0.0.3
Err writes a log entry at LevelError to the output destination.
func (*Logger) Fatal ¶ added in v0.0.3
Fatal writes a log entry at LevelFatal to the output destination and exit 1.
Click to show internal directories.
Click to hide internal directories.