![]() | LogManager Methods |
The LogManager type exposes the following members.
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.
|