Documentation ¶
Index ¶
- Constants
- type Logger
- func (bl *Logger) Alert(format string, v ...interface{})
- func (bl *Logger) Critical(format string, v ...interface{})
- func (bl *Logger) Debug(format string, v ...interface{})
- func (bl *Logger) Error(format string, v ...interface{})
- func (bl *Logger) Info(format string, v ...interface{})
- func (bl *Logger) Informational(format string, v ...interface{})
- func (bl *Logger) Notice(format string, v ...interface{})
- func (bl Logger) SetOutput(w io.Writer) *Logger
- func (bl Logger) SetPrefix(prefix string) *Logger
- func (bl *Logger) Trace(format string, v ...interface{})
- func (bl *Logger) Warn(format string, v ...interface{})
- func (bl *Logger) Warning(format string, v ...interface{})
Constants ¶
View Source
const ( LevelEmergency = iota LevelAlert LevelCritical LevelError LevelWarning LevelNotice LevelInformational LevelDebug )
RFC5424 log message levels.
View Source
const ( LevelInfo = LevelInformational LevelTrace = LevelDebug LevelWarn = LevelWarning )
Legacy log level constants to ensure backwards compatibility.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) Informational ¶
Informational Log INFORMATIONAL level message.
Click to show internal directories.
Click to hide internal directories.