log4ahk.​loglevel

Helper class for log4ahk (Implementing loglevels)

Loglevels support the following needs

Internals
Private Methods
tr
tr(
lvl
)

Translate the numeric loglevel into a string

Parameters
lvl

Numerical loglevel

Returns

String describing the choosen loglevel (to be used within layout)

_limit
_limit(
lvl
)

Validate the loglevel

Parameters
lvl

loglevel to be checked

Returns

corrected loglevel

Properties
current [get/set]

get/set the current loglevel

required [get/set]

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