LogFactoryT Class |
Namespace: NLog
The LogFactoryT type exposes the following members.
Name | Description | |
---|---|---|
LogFactoryT | Initializes a new instance of the LogFactoryT class |
Name | Description | |
---|---|---|
AutoShutdown |
Gets or sets a value indicating whether to automatically call Shutdown
on AppDomain.Unload or AppDomain.ProcessExit
(Inherited from LogFactory.) | |
Configuration |
Gets or sets the current logging configuration.
(Inherited from LogFactory.) | |
DefaultCultureInfo |
Gets or sets the default culture info to use as FormatProvider.
(Inherited from LogFactory.) | |
GlobalThreshold |
Gets or sets the global log level threshold. Log events below this threshold are not logged.
(Inherited from LogFactory.) | |
KeepVariablesOnReload |
Gets or sets a value indicating whether Variables should be kept on configuration reload.
(Inherited from LogFactory.) | |
ServiceRepository |
Repository of interfaces used by NLog to allow override for dependency injection
(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.) | |
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.) | |
Flush |
Flush any pending log messages (in case of asynchronous targets) with the default timeout of 15 seconds.
(Inherited from LogFactory.) | |
Flush(AsyncContinuation) |
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, 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 full name of the current class (so namespace and class name) and type T.
| |
GetLogger |
Gets the logger with type T.
| |
IsLoggingEnabled |
Returns if logging is currently enabled.
(Inherited from LogFactory.) | |
OnConfigurationChanged |
Raises the event when the configuration is reloaded.
(Inherited from LogFactory.) | |
OnConfigurationReloaded | Obsolete.
Obsolete and replaced by OnConfigurationReloaded(LoggingConfigurationReloadedEventArgs) with NLog 5.2.
Raises the event when the configuration is reloaded.
(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.) | |
ReconfigExistingLoggers(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.) | |
ResumeLogging |
Resumes logging if having called SuspendLogging.
(Inherited from LogFactory.) | |
Setup |
Begins configuration of the LogFactory options using fluent interface
(Inherited from LogFactory.) | |
Setup(ActionISetupBuilder) |
Begins configuration of the LogFactory options using fluent interface
(Inherited from LogFactory.) | |
Shutdown |
Dispose all targets, and shutdown logging.
(Inherited from LogFactory.) | |
SuspendLogging |
Suspends the logging, and returns object for using-scope so scope-exit calls ResumeLogging (Inherited from LogFactory.) |
Name | Description | |
---|---|---|
ConfigurationChanged |
Occurs when logging Configuration changes. Both when assigned to new config or config unloaded.
(Inherited from LogFactory.) |