 | LogManagerSuspendLogging Method |
Suspends the logging, and returns object for using-scope so scope-exit calls
ResumeLogging
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntaxpublic static IDisposable SuspendLogging()
Public Shared Function SuspendLogging As IDisposable
Dim returnValue As IDisposable
returnValue = LogManager.SuspendLogging()
static member SuspendLogging : unit -> 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 suspended when the number of
SuspendLogging calls are greater
than the number of
ResumeLogging calls.
See Also