Click or drag to resize

LogFactoryT Methods

The LogFactoryT generic type exposes the following members.

Methods
  NameDescription
Public methodCreateNullLogger
Creates a logger that discards all log messages.
(Inherited from LogFactory.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from LogFactory.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from LogFactory.)
Public methodFlush
Flush any pending log messages (in case of asynchronous targets) with the default timeout of 15 seconds.
(Inherited from LogFactory.)
Public methodFlush(AsyncContinuation)
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.)
Public methodFlush(Int32)
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.)
Public methodFlush(TimeSpan)
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.)
Public methodFlush(AsyncContinuation, Int32)
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.)
Public methodFlush(AsyncContinuation, TimeSpan)
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.)
Public methodGetCurrentClassLogger
Gets a custom logger with the full name of the current class (so namespace and class name) and type T.
Public methodGetLogger
Gets the logger with type T.
Public methodIsLoggingEnabled
Returns if logging is currently enabled.
(Inherited from LogFactory.)
Protected methodOnConfigurationChanged
Raises the event when the configuration is reloaded.
(Inherited from LogFactory.)
Protected methodOnConfigurationReloaded Obsolete.
Obsolete and replaced by OnConfigurationReloaded(LoggingConfigurationReloadedEventArgs) with NLog 5.2. Raises the event when the configuration is reloaded.
(Inherited from LogFactory.)
Public methodReconfigExistingLoggers
Loops through all loggers previously returned by GetLogger and recalculates their target and filter list. Useful after modifying the configuration programmatically to ensure that all loggers have been properly configured.
(Inherited from LogFactory.)
Public methodReconfigExistingLoggers(Boolean)
Loops through all loggers previously returned by GetLogger and recalculates their target and filter list. Useful after modifying the configuration programmatically to ensure that all loggers have been properly configured.
(Inherited from LogFactory.)
Public methodResumeLogging (Inherited from LogFactory.)
Public methodSetup
Begins configuration of the LogFactory options using fluent interface
(Inherited from LogFactory.)
Public methodSetup(ActionISetupBuilder)
Begins configuration of the LogFactory options using fluent interface
(Inherited from LogFactory.)
Public methodShutdown
Dispose all targets, and shutdown logging.
(Inherited from LogFactory.)
Public methodSuspendLogging
Suspends the logging, and returns object for using-scope so scope-exit calls ResumeLogging
(Inherited from LogFactory.)
Top
See Also