Helper class for log4ahk (Implementing loglevels)
Loglevels support the following needs
hierarchize your log messages due to importance of the log message (from TRACE to FATAL)
control which level of log messages are currently to be logged
Different hierarchical loglevels are supported
The hierachy levels are trace (1) <- debug (2) <- info (3) <- warn (4) <- error (5) <- fatal (6)
to log on a certain loglevel, separate methods are available (trace, debug, info, warn, error, fatal)
To filter message to due current used loglevel use following syntax, set the property logger.loglevel.required to the requested level
| tr( |
| ) |
Translate the numeric loglevel into a string
| lvl | Numerical loglevel |
String describing the choosen loglevel (to be used within layout)
| _limit( |
| ) |
Validate the loglevel
| lvl | loglevel to be checked |
corrected loglevel
get/set the current loglevel
get/set the required loglevel
If a message is reuested to be logged, the current loglevel is compared against required loglevel. If the current loglevel is greater/equal the required loglevel the message is logged - otherwise it is suppressed