officescripts-logging-framework
    Preparing search index...

    Enumeration LOG_EVENT

    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.

    It was defined as an independent entity since it is used by appenders and by the Logger.

    Index

    Enumeration Members

    Enumeration Members

    ERROR: 1
    INFO: 3
    TRACE: 4
    WARN: 2