Helper class for log4ahk (Implementing loglevels)
Loglevels support the following needs
prioritize 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 priorities/hierarchical loglevels are supported
The priorities are trace (1) <- debug (2) <- info (3) <- warn (4) <- error (5) <- fatal (6)
to log with a certain priority, separate methods are available (trace, debug, info, warn, error, fatal)
To filter messages due currently desired loglevel, set the property logger.loglevel.required to the required loglevel
| 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