Enum representing log event types.
Each value corresponds to a the level of verbosity and is used internally to filter messages.
LoggerImpl.LEVEL static constants was implemented in a way to align with the order of the enum
LOG_EVENT, so the order on how the LOG_EVENT values are defined matters.
Important:
If new values are added, update the logic in related classes (e.g. ConsoleAppender, ExcelAppender, LoggerImpl, etc.).
Don't start the LOG_EVENT enum with 0, this value is reserved for LoggerImpl.LEVEL
for not sending log events (LoggerImpl.LEVEL.OFF).
It ensures the verbose level values are aligned with the LOG_EVENT enum.
LoggerImpl.LEVEL is built based on LOG_EVENT, just adding as first value 0, i.e.
LoggerImpl.OFF, therefore the verbosity respects the same order of the LOG_EVENT.
Remarks
It was defined as an independent entity since it is used by appenders and by the Logger.
Enum representing log event types. Each value corresponds to a the level of verbosity and is used internally to filter messages.
LoggerImpl.LEVEL
static constants was implemented in a way to align with the order of the enumLOG_EVENT
, so the order on how theLOG_EVENT
values are defined matters.Important:
ConsoleAppender
,ExcelAppender
,LoggerImpl
, etc.).LOG_EVENT
enum with0
, this value is reserved forLoggerImpl.LEVEL
for not sending log events (LoggerImpl.LEVEL.OFF
). It ensures the verbose level values are aligned with theLOG_EVENT
enum.LoggerImpl.LEVEL
is built based onLOG_EVENT
, just adding as first value0
, i.e.LoggerImpl.OFF
, therefore the verbosity respects the same order of theLOG_EVENT
.Remarks
It was defined as an independent entity since it is used by appenders and by the Logger.