@samatawy/rules
    Preparing search index...

    Class AbstractLoggerAbstract

    Abstract logger class that provides the core logging functionality for the Rule engine. This class is not meant to be used directly. Instead, use the Logger class, which extends AbstractLogger and provides additional features. If you want to create a custom logger, you can either extend AbstractLogger or implement the ILogger interface directly. The Logger class includes a helper function withLogger to execute code blocks with a temporary logger override, which can be useful for testing or specific logging scenarios.

    N.B. If you need to use the loggers registered in Logger, you can create a ContextLogger through getContextLogger()

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Methods

    • In case your logger buffers logs, flush should be called at the end of execution to ensure all logs are written out. If your logger does not buffer logs, you can leave this method empty.

      Returns void