Method | Description | |
---|---|---|
CreateNullLogger ( ) : Logger |
Creates a logger that discards all log messages.
|
|
DisableLogging ( ) : IDisposable |
Decreases the log enable counter and if it reaches -1 the logs are disabled. Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls. |
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
EnableLogging ( ) : void |
Increases the log enable counter and if it reaches 0 the logs are disabled. Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls. |
|
Flush ( ) : void |
Flush any pending log messages (in case of asynchronous targets).
|
|
Flush ( AsyncContinuation asyncContinuation ) : void |
Flush any pending log messages (in case of asynchronous targets).
|
|
Flush ( AsyncContinuation asyncContinuation, System.TimeSpan timeout ) : void |
Flush any pending log messages (in case of asynchronous targets).
|
|
Flush ( AsyncContinuation asyncContinuation, int timeoutMilliseconds ) : void |
Flush any pending log messages (in case of asynchronous targets).
|
|
Flush ( System.TimeSpan timeout ) : void |
Flush any pending log messages (in case of asynchronous targets).
|
|
Flush ( int timeoutMilliseconds ) : void |
Flush any pending log messages (in case of asynchronous targets).
|
|
GetLogger ( string name ) : Logger |
Gets the specified named logger.
|
|
GetLogger ( string name, |
Gets the specified named logger.
|
|
IsLoggingEnabled ( ) : bool |
Returns Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls. |
|
LogFactory ( ) : System |
Initializes a new instance of the LogFactory class.
|
|
LogFactory ( |
Initializes a new instance of the LogFactory class.
|
|
ReconfigExistingLoggers ( ) : void |
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.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources.
|
Method | Description | |
---|---|---|
ConfigFileChanged ( object sender, |
||
Dump ( |
||
GetCandidateFileNames ( ) : IEnumerable |
||
GetConfigurationForLogger ( string name, |
||
GetCurrentClassLogger ( ) : Logger | ||
GetCurrentClassLogger ( |
||
GetLogger ( LoggerCacheKey cacheKey ) : Logger | ||
GetTargetsByLevelForLogger ( string name, IList |
||
ReconfigExistingLoggers ( |
||
ReloadConfigOnTimer ( object state ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True to release both managed and unmanaged resources; |
return | void |
public Flush ( AsyncContinuation asyncContinuation ) : void | ||
asyncContinuation | AsyncContinuation | The asynchronous continuation. |
return | void |
public Flush ( AsyncContinuation asyncContinuation, System.TimeSpan timeout ) : void | ||
asyncContinuation | AsyncContinuation | The asynchronous continuation. |
timeout | System.TimeSpan | Maximum time to allow for the flush. Any messages after that time will be discarded. |
return | void |
public Flush ( AsyncContinuation asyncContinuation, int timeoutMilliseconds ) : void | ||
asyncContinuation | AsyncContinuation | The asynchronous continuation. |
timeoutMilliseconds | int | Maximum time to allow for the flush. Any messages after that time will be discarded. |
return | void |
public Flush ( System.TimeSpan timeout ) : void | ||
timeout | System.TimeSpan | Maximum time to allow for the flush. Any messages after that time will be discarded. |
return | void |
public Flush ( int timeoutMilliseconds ) : void | ||
timeoutMilliseconds | int | Maximum time to allow for the flush. Any messages after that time will be discarded. |
return | void |
public GetLogger ( string name ) : Logger | ||
name | string | Name of the logger. |
return | Logger |
public GetLogger ( string name, |
||
name | string | Name of the logger. |
loggerType | The type of the logger to create. The type must inherit from NLog.Logger. | |
return | Logger |
public LogFactory ( |
||
config | The config. | |
return | System |