[This is preliminary documentation and subject to change.]
Decreases the log enable counter and if it reaches -1 the logs are disabled.
An object that iplements 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.
LogManager Class | NLog Namespace