-
Notifications
You must be signed in to change notification settings - Fork 9
Log Levels
jduquennoy edited this page Dec 20, 2015
·
5 revisions
Log4swift defines 6 effective log levels, plus one for configuration purpose only :
- Fatal
- Error
- Warning
- Info
- Debug
- Trace
- Off (configuration purpose only)
Fatal is the highest log level, Trace is the lowest log level. The Off level cannot be used to log messages, but can be use as a threshold level for loggers and appenders, to mute them.
When a threshold level is defined, all logs below the threshold are ignored. For exemple, if you define a threshold level of Warning, Fatal Error and Warning messages will be processed, while Info and Debug messages will be ignored.
In configuration files, log levels are defined by their textual values, ignoring case.