NLog Logging Library

LogManager Members

LogManager overview

Public Static (Shared) Properties

Configuration Gets or sets the current logging configuration.
GlobalThreshold Global log threshold. Log events below this threshold are not logged.
ThrowExceptions Specified whether NLog should throw exceptions. By default exceptions are not thrown under any circumstances.

Public Static (Shared) Methods

CreateNullLogger Creates a logger that discards all log messages.
DisableLoggingDecreases the log enable counter and if it reaches -1 the logs are disabled.
EnableLoggingIncreases the log enable counter and if it reaches 0 the logs are disabled.
FlushOverloaded. Flush any pending log messages (in case of asynchronous targets).
GetCurrentClassLogger Gets the logger named after the currently-being-initialized class.
GetLogger Gets the specified named logger.
IsLoggingEnabled Returns true if logging is currently enabled.
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.

Public Static (Shared) Events

ConfigurationChanged Occurs when logging Configuration changes.
ConfigurationReloaded Occurs when logging Configuration gets reloaded.

See Also

LogManager Class | NLog Namespace