Documentation ¶
Index ¶
- Constants
- type LogLevel
- type Logger
- func (l *Logger) Debug(format string, a ...interface{})
- func (l *Logger) Error(format string, a ...interface{})
- func (l *Logger) Fatal(format string, a ...interface{})
- func (l *Logger) Info(format string, a ...interface{})
- func (l *Logger) SetLevel(level LogLevel)
- func (l *Logger) Trace(format string, a ...interface{})
- func (l *Logger) Warn(format string, a ...interface{})
Constants ¶
View Source
const ( TRACE = iota DEBUG INFO WARN ERROR FATAL )
Log levels
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLevel ¶
type LogLevel uint8
LogLevel controls what log statements are activated for a given logger
type Logger ¶
type Logger struct { ExitOnFatal bool // contains filtered or unexported fields }
Logger maintains a set of logging functions and has a log level that can be modified dynamically
func (*Logger) Fatal ¶
Fatal logs an error statement and exits the application FATAL or lower (any level)
Click to show internal directories.
Click to hide internal directories.