TLoggerBase.IsEnabled(TLogLevel,TLogEventTypes) Method

Returns true if level is enabled and any of the eventTypes is enabled or false otherwise.

Namespace: Spring.Logging.Loggers
public
 function IsEnabled(level: TLogLevel;
 eventTypes: TLogEventTypes = [TLogEventType.Text]): Boolean; inline;

Parameters

level
Type: TLogLevel

eventTypes
Type: TLogEventTypes

Specifies event types to check, must not be empty! Defaults to Text.

Return Value

Type: Boolean

 

Implements

ILoggerBase.IsEnabled(TLogLevel,TLogEventTypes)