 | LogFactorySuspendLogging Method |
Decreases the log enable counter and if it reaches -1 the logs are disabled.
Namespace: NLogAssembly: NLog (in NLog.dll) Version: 4.3.0
Syntaxpublic IDisposable SuspendLogging()
Public Function SuspendLogging As IDisposable
Return Value
Type:
IDisposableAn object that implements IDisposable whose Dispose() method re-enables logging.
To be used with C#
using () statement.
Remarks
Logging is enabled if the number of
ResumeLogging calls is greater than
or equal to
SuspendLogging calls.
See Also