NLog Logging Library

LogManager.IsLoggingEnabled Method 

[This is preliminary documentation and subject to change.]

Returns true if logging is currently enabled.

[Visual Basic]
Public Shared Function IsLoggingEnabled() As Boolean
[C#]
public static bool IsLoggingEnabled();

Return Value

true if logging is currently enabled, false otherwise.

Remarks

Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls.

See Also

LogManager Class | NLog Namespace