[This is preliminary documentation and is subject to change.]
The LogManager type exposes the following members.
Creates a logger that discards all log messages.
Decreases the log enable counter and if it reaches -1 the logs are disabled.
Increases the log enable counter and if it reaches 0 the logs are disabled.
Returns trueTruetruetrue (True in Visual Basic) if logging is currently enabled.
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.
Dispose all targets, and shutdown logging.
Gets or sets the current logging configuration.
Gets or sets the default culture to use.
Gets or sets the global log threshold. Log events below this threshold are not logged.
Gets or sets a value indicating whether NLog should throw exceptions. By default exceptions are not thrown under any circumstances.
Occurs when logging Configuration changes.
Occurs when logging Configuration gets reloaded.