Click or drag to resize
LogFactoryDisableLogging Method

Note: This API is now obsolete.

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
[ObsoleteAttribute("Use SuspendLogging() instead.")]
public IDisposable DisableLogging()

Return Value

Type: IDisposable
An object that implements IDisposable whose Dispose() method re-enables logging. To be used with C# using () statement.
See Also