![]() | LogFactoryT Class |
Namespace: NLog
The LogFactoryT type exposes the following members.
Name | Description | |
---|---|---|
![]() | LogFactoryT | Initializes a new instance of the LogFactoryT class |
Name | Description | |
---|---|---|
![]() | Configuration |
Gets or sets the current logging configuration. After setting this property all
existing loggers will be re-configured, so that there is no need to call ReconfigExistingLoggers
manually.
(Inherited from LogFactory.) |
![]() | DefaultCultureInfo |
Gets the default culture info to use as FormatProvider.
(Inherited from LogFactory.) |
![]() | GlobalThreshold |
Gets or sets the global log threshold. Log events below this threshold are not logged.
(Inherited from LogFactory.) |
![]() | ThrowConfigExceptions |
Gets or sets a value indicating whether NLogConfigurationException should be thrown.
If null then ThrowExceptions is used.
(Inherited from LogFactory.) |
![]() | ThrowExceptions |
Gets or sets a value indicating whether exceptions should be thrown. See also ThrowConfigExceptions.
(Inherited from LogFactory.) |
Name | Description | |
---|---|---|
![]() | CreateNullLogger |
Creates a logger that discards all log messages.
(Inherited from LogFactory.) |
![]() | DisableLogging | Obsolete.
Decreases the log enable counter and if it reaches -1 the logs are disabled.
(Inherited from LogFactory.) |
![]() | Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
(Inherited from LogFactory.) |
![]() | Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources.
(Inherited from LogFactory.) |
![]() | EnableLogging | Obsolete.
Increases the log enable counter and if it reaches 0 the logs are disabled.
(Inherited from LogFactory.) |
![]() | Flush |
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.) |
![]() | Flush(Int32) |
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.) |
![]() | Flush(TimeSpan) |
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.) |
![]() | Flush(AsyncContinuation) |
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.) |
![]() | Flush(AsyncContinuation, Int32) |
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.) |
![]() | Flush(AsyncContinuation, TimeSpan) |
Flush any pending log messages (in case of asynchronous targets).
(Inherited from LogFactory.) |
![]() | GetCurrentClassLogger |
Gets a custom logger with the name of the current class and type T.
|
![]() | GetCurrentClassLogger(Type) |
Gets a custom logger with the name of the current class. Use loggerType to pass the type of the needed Logger.
(Inherited from LogFactory.) |
![]() | GetLogger(String) |
Gets the logger with type T.
|
![]() | GetLogger(String, Type) |
Gets the specified named logger. Use loggerType to pass the type of the needed Logger.
(Inherited from LogFactory.) |
![]() | IsLoggingEnabled |
Returns if logging is currently enabled.
(Inherited from LogFactory.) |
![]() | OnConfigurationChanged |
Invoke the Changed event; called whenever list changes
(Inherited from LogFactory.) |
![]() | ReconfigExistingLoggers |
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.) |
![]() | ResumeLogging |
Increases the log enable counter and if it reaches 0 the logs are disabled.
(Inherited from LogFactory.) |
![]() | SuspendLogging |
Decreases the log enable counter and if it reaches -1 the logs are disabled.
(Inherited from LogFactory.) |
Name | Description | |
---|---|---|
![]() | ConfigurationChanged |
Occurs when logging Configuration changes.
(Inherited from LogFactory.) |
![]() | ConfigurationReloaded |
Occurs when logging Configuration gets reloaded.
(Inherited from LogFactory.) |