 | LogFactorySuspendLogging Method |
Suspends the logging, and returns object for using-scope so scope-exit calls
ResumeLogging
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxpublic IDisposable SuspendLogging()
Public Function SuspendLogging As IDisposable
Dim instance As LogFactory
Dim returnValue As IDisposable
returnValue = instance.SuspendLogging()
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