AbstractSet the minimum log level for this logger. Messages with a lower log level will be ignored.
the minimum log level to set.
Check if a message at the given log level would be logged by the current logger configuration.
the log level to check.
AbstracttraceAbstractdebugAbstractinfoAbstractwarnAbstracterrorAbstractfatalAbstractlogAbstractflushIn 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.
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
withLoggerto 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()