Home -> ILogger -> IsLogSeverityEnabled

Description

The IsLogSeverityEnabled method reports whether the logger currently accepts messages at the supplied severity.

ImportantImportant

Use this method to avoid constructing expensive log messages when the target severity is disabled.

Usage

bool IsLogSeverityEnabled(Severity severity) const;

Argument list

severity [Severity]
The severity value to test.

Return value

[bool]
true if the supplied severity is enabled; otherwise false.

See also