Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int8
Define a Level type to represent the severity level for a log entry.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Define a custom Logger type. This holds the output destination that the log entries will be written to, the minimum severity level that log entries will be written for, plus a mutex for coordinating the writes.
func New ¶
Return a new Logger instance which writes log entries at or above a minimum severity level to a specific output destination.
Click to show internal directories.
Click to hide internal directories.