![]() | LogManager Class |
Namespace: NLog
The LogManager type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Configuration |
Gets or sets the current logging configuration.
Configuration |
![]() ![]() | DefaultCultureInfo | Obsolete.
Gets or sets the default culture to use.
|
![]() ![]() | GlobalThreshold |
Gets or sets the global log threshold. Log events below this threshold are not logged.
|
![]() ![]() | ThrowConfigExceptions |
Gets or sets a value indicating whether NLogConfigurationException should be thrown.
|
![]() ![]() | ThrowExceptions |
Gets or sets a value indicating whether NLog should throw exceptions.
By default exceptions are not thrown under any circumstances.
|
Name | Description | |
---|---|---|
![]() ![]() | AddHiddenAssembly |
Adds the given assembly which will be skipped
when NLog is trying to find the calling method on stack trace.
|
![]() ![]() | CreateNullLogger |
Creates a logger that discards all log messages.
|
![]() ![]() | DisableLogging |
Decreases the log enable counter and if it reaches -1 the logs are disabled.
|
![]() ![]() | EnableLogging |
Increases the log enable counter and if it reaches 0 the logs are disabled.
|
![]() ![]() | Flush |
Flush any pending log messages (in case of asynchronous targets).
|
![]() ![]() | Flush(Int32) |
Flush any pending log messages (in case of asynchronous targets).
|
![]() ![]() | Flush(TimeSpan) |
Flush any pending log messages (in case of asynchronous targets).
|
![]() ![]() | Flush(AsyncContinuation) |
Flush any pending log messages (in case of asynchronous targets).
|
![]() ![]() | Flush(AsyncContinuation, Int32) |
Flush any pending log messages (in case of asynchronous targets).
|
![]() ![]() | Flush(AsyncContinuation, TimeSpan) |
Flush any pending log messages (in case of asynchronous targets).
|
![]() ![]() | GetCurrentClassLogger |
Gets the logger with the name of the current class.
|
![]() ![]() | GetCurrentClassLogger(Type) |
Gets a custom logger with the name of the current class. Use loggerType to pass the type of the needed Logger.
|
![]() ![]() | GetLogger(String) |
Gets the specified named logger.
|
![]() ![]() | GetLogger(String, Type) |
Gets the specified named custom logger. Use loggerType to pass the type of the needed Logger.
|
![]() ![]() | IsLoggingEnabled |
Checks 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.
|
![]() ![]() | Shutdown |
Dispose all targets, and shutdown logging.
|
Name | Description | |
---|---|---|
![]() ![]() | ConfigurationChanged |
Occurs when logging Configuration changes.
|
![]() ![]() | ConfigurationReloaded |
Occurs when logging Configuration gets reloaded.
|