Documentation ¶
Overview ¶
Package logger is a simple package for level based logging
Index ¶
- type Level
- type Logger
- func (lggr *Logger) Debug(msg string)
- func (lggr *Logger) Error(msg string)
- func (lggr *Logger) Fatal(msg string)
- func (lggr *Logger) GetLevel() Level
- func (lggr *Logger) Info(msg string)
- func (lggr *Logger) SetLevel(lvl Level)
- func (lggr *Logger) Trace(msg string)
- func (lggr *Logger) Warning(msg string)
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 represents the state of a level based logger
func (*Logger) SetLevel ¶
SetLevel sets the logging level to lvl. Once set, all the logging calls with level higher than the current level are discarded. Levels from lowest to highest are: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE By default the level log level is set to INFO
Click to show internal directories.
Click to hide internal directories.