Documentation ¶
Overview ¶
Package logging provides basic logging features (modules, log levels).
Index ¶
- Variables
- type Level
- type Logger
- func (l *Logger) Debug(message string)
- func (l *Logger) Debugf(message string, a ...interface{})
- func (l *Logger) Error(message string)
- func (l *Logger) Errorf(message string, a ...interface{})
- func (l *Logger) Fatal(message string)
- func (l *Logger) Fatalf(message string, a ...interface{})
- func (l *Logger) Info(message string)
- func (l *Logger) Infof(message string, a ...interface{})
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) Trace(message string)
- func (l *Logger) Tracef(message string, a ...interface{})
- func (l *Logger) Warn(message string)
- func (l *Logger) Warnf(message string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogLevel = INFO
DefaultLogLevel is set to INFO.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int
Level defines the log level. Can be one of the following: * OFF * FATAL * ERROR * WARN * INFO * DEBUG * TRACE
type Logger ¶
Logger is used to extend log.Logger.
func (*Logger) SetLevel ¶
SetLevel sets the current log leve. Messages with a lower level than the given level will be omitted.
Click to show internal directories.
Click to hide internal directories.