ILoggerBase.IsEnabled(TLogLevel,TLogEventTypes) Method

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

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

Parameters

level
Type: TLogLevel

eventType
Type: TLogEventTypes

eventTypes

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

Return Value

Type: Boolean