Click or drag to resize
LogManagerDisableLogging Method
Decreases the log enable counter and if it reaches -1 the logs are disabled.

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
public static IDisposable DisableLogging()

Return Value

Type: IDisposable
An object that implements IDisposable whose Dispose() method reenables logging. To be used with C# using () statement.
Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls.
See Also