NLog.LogManager
Creates and manages instances of Logger objects.
Gets or sets a value indicating whether to automatically call Shutdown
on AppDomain.Unload or AppDomain.ProcessExit
Gets or sets the current logging configuration.
Gets or sets the global log threshold. Log events below this threshold are not logged.
Gets or sets a value indicating whether Variables should be kept on configuration reload.
Gets the LogFactory instance used in the LogManager.
Gets or sets whether NLog should rethrow NLogConfigurationException to alert about configuration errors.
Gets or sets whether NLog should rethrow its own exceptions into the application instead of keeping them suppressed.
Occurs when logging Configuration changes. Both when assigned to new config or config unloaded.
Adds the given assembly which will be skipped
when NLog is trying to find the calling method on stack trace.
Creates a logger that discards all log messages.
Obsolete and replaced by by SuspendLogging with NLog v5.
Suspends the logging, and returns object for using-scope so scope-exit calls EnableLogging
Obsolete and replaced by disposing the scope returned from SuspendLogging with NLog v5.
Resumes logging if having called DisableLogging.
Flush any pending log messages (in case of asynchronous targets) with the default timeout of 15 seconds.
Flush any pending log messages (in case of asynchronous targets).
Flush any pending log messages (in case of asynchronous targets).
Flush any pending log messages (in case of asynchronous targets).
Flush any pending log messages (in case of asynchronous targets).
Flush any pending log messages (in case of asynchronous targets).
Gets the logger with the full name of the current class, so namespace and class name.
Obsolete and replaced by GetCurrentClassLogger<T> with NLog v5.2.
Gets a custom logger with the full name of the current class, so namespace and class name.
Use loggerType to create instance of a custom Logger.
If you haven't defined your own Logger class, then use the overload without the loggerType.
Gets the specified named logger.
Obsolete and replaced by GetLogger<T> with NLog v5.2.
Gets the specified named custom Logger using the parameter loggerType for creating instance.
If you haven't defined your own Logger class, then use the overload without the loggerType.
Returns true if logging is currently enabled.
Obsolete and replaced by Setup and LoadConfigurationFromFile with NLog v5.2.
Loads logging configuration from file (Only XML configuration files supported)
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.
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.
Resumes logging if having called SuspendLogging.
Begins configuration of the LogFactory options using fluent interface
Begins configuration of the LogFactory options using fluent interface
Dispose all targets, and shutdown logging.
Suspends the logging, and returns object for using-scope so scope-exit calls ResumeLogging