Logger Class |
Namespace: NLog
The Logger type exposes the following members.
Name | Description | |
---|---|---|
Factory |
Gets the factory that created this logger.
| |
IsDebugEnabled |
Gets a value indicating whether logging is enabled for the Debug level.
| |
IsErrorEnabled |
Gets a value indicating whether logging is enabled for the Error level.
| |
IsFatalEnabled |
Gets a value indicating whether logging is enabled for the Fatal level.
| |
IsInfoEnabled |
Gets a value indicating whether logging is enabled for the Info level.
| |
IsTraceEnabled |
Gets a value indicating whether logging is enabled for the Trace level.
| |
IsWarnEnabled |
Gets a value indicating whether logging is enabled for the Warn level.
| |
Name |
Gets the name of the logger.
| |
Properties |
Collection of context properties for the Logger. The logger will append it for all log events
|
Name | Description | |
---|---|---|
ConditionalDebug(LogMessageGenerator) |
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(Object) |
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String) |
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, Object) |
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Boolean) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Byte) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Char) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Decimal) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Double) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Int32) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Int64) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Object) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Object) |
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Single) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, String) |
Writes the diagnostic message at the Debug level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(Exception, String, Object) |
Writes the diagnostic message and exception at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Boolean) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Byte) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Char) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Decimal) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Double) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Int32) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Int64) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Object) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Object) |
Writes the diagnostic message at the Debug level using the specified parameters and formatting them with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, Single) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(IFormatProvider, String, String) |
Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Object, Object) |
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebug(String, Object, Object, Object) |
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebugT(T) |
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebugT(IFormatProvider, T) |
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebugTArgument(String, TArgument) |
Writes the diagnostic message at the Debug level using the specified parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebugTArgument(IFormatProvider, String, TArgument) |
Writes the diagnostic message at the Debug level using the specified parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebugTArgument1, TArgument2(String, TArgument1, TArgument2) |
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebugTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebugTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalDebugTArgument1, TArgument2, TArgument3(IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(LogMessageGenerator) |
Writes the diagnostic message at the Trace level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(Object) |
Writes the diagnostic message at the Trace level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String) |
Writes the diagnostic message at the Trace level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, Object) |
Writes the diagnostic message at the Trace level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Boolean) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Byte) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Char) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Decimal) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Double) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Int32) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Int64) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Object) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Object) |
Writes the diagnostic message at the Trace level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Single) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, String) |
Writes the diagnostic message at the Trace level using the specified value as a parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(Exception, String, Object) |
Writes the diagnostic message and exception at the Trace level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Boolean) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Byte) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Char) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Decimal) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Double) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Int32) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Int64) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Object) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Object) |
Writes the diagnostic message at the Trace level using the specified parameters and formatting them with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, Single) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(IFormatProvider, String, String) |
Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Object, Object) |
Writes the diagnostic message at the Trace level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the Trace level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTrace(String, Object, Object, Object) |
Writes the diagnostic message at the Trace level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTraceT(T) |
Writes the diagnostic message at the Trace level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTraceT(IFormatProvider, T) |
Writes the diagnostic message at the Trace level.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTraceTArgument(String, TArgument) |
Writes the diagnostic message at the Trace level using the specified parameter.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTraceTArgument(IFormatProvider, String, TArgument) |
Writes the diagnostic message at the Trace level using the specified parameter and formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTraceTArgument1, TArgument2(String, TArgument1, TArgument2) |
Writes the diagnostic message at the Trace level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTraceTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTraceTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Trace level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. | |
ConditionalTraceTArgument1, TArgument2, TArgument3(IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider.
Only executed when the DEBUG conditional compilation symbol is set. | |
Debug(LogMessageGenerator) |
Writes the diagnostic message at the Debug level.
| |
Debug(String) |
Writes the diagnostic message at the Debug level.
| |
Debug(Exception, String) |
Writes the diagnostic message and exception at the Debug level.
| |
Debug(String, Object) |
Writes the diagnostic message at the Debug level using the specified parameters.
| |
Debug(Exception, String, Object) |
Writes the diagnostic message and exception at the Debug level.
| |
Debug(IFormatProvider, String, Object) |
Writes the diagnostic message at the Debug level using the specified parameters and formatting them with the supplied format provider.
| |
Debug(Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the Debug level.
| |
DebugT(T) |
Writes the diagnostic message at the Debug level.
| |
DebugT(IFormatProvider, T) |
Writes the diagnostic message at the Debug level.
| |
DebugTArgument(String, TArgument) |
Writes the diagnostic message at the Debug level using the specified parameter.
| |
DebugTArgument(IFormatProvider, String, TArgument) |
Writes the diagnostic message at the Debug level using the specified parameter and formatting it with the supplied format provider.
| |
DebugTArgument1, TArgument2(String, TArgument1, TArgument2) |
Writes the diagnostic message at the Debug level using the specified parameters.
| |
DebugTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider.
| |
DebugTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Debug level using the specified parameters.
| |
DebugTArgument1, TArgument2, TArgument3(IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider.
| |
Error(LogMessageGenerator) |
Writes the diagnostic message at the Error level.
| |
Error(String) |
Writes the diagnostic message at the Error level.
| |
Error(Exception, String) |
Writes the diagnostic message and exception at the Error level.
| |
Error(String, Object) |
Writes the diagnostic message at the Error level using the specified parameters.
| |
Error(Exception, String, Object) |
Writes the diagnostic message and exception at the Error level.
| |
Error(IFormatProvider, String, Object) |
Writes the diagnostic message at the Error level using the specified parameters and formatting them with the supplied format provider.
| |
Error(Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the Error level.
| |
ErrorT(T) |
Writes the diagnostic message at the Error level.
| |
ErrorT(IFormatProvider, T) |
Writes the diagnostic message at the Error level.
| |
ErrorTArgument(String, TArgument) |
Writes the diagnostic message at the Error level using the specified parameter.
| |
ErrorTArgument(IFormatProvider, String, TArgument) |
Writes the diagnostic message at the Error level using the specified parameter and formatting it with the supplied format provider.
| |
ErrorTArgument1, TArgument2(String, TArgument1, TArgument2) |
Writes the diagnostic message at the Error level using the specified parameters.
| |
ErrorTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the Error level using the specified arguments formatting it with the supplied format provider.
| |
ErrorTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Error level using the specified parameters.
| |
ErrorTArgument1, TArgument2, TArgument3(IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Error level using the specified arguments formatting it with the supplied format provider.
| |
Fatal(LogMessageGenerator) |
Writes the diagnostic message at the Fatal level.
| |
Fatal(String) |
Writes the diagnostic message at the Fatal level.
| |
Fatal(Exception, String) |
Writes the diagnostic message and exception at the Fatal level.
| |
Fatal(String, Object) |
Writes the diagnostic message at the Fatal level using the specified parameters.
| |
Fatal(Exception, String, Object) |
Writes the diagnostic message and exception at the Fatal level.
| |
Fatal(IFormatProvider, String, Object) |
Writes the diagnostic message at the Fatal level using the specified parameters and formatting them with the supplied format provider.
| |
Fatal(Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the Fatal level.
| |
FatalT(T) |
Writes the diagnostic message at the Fatal level.
| |
FatalT(IFormatProvider, T) |
Writes the diagnostic message at the Fatal level.
| |
FatalTArgument(String, TArgument) |
Writes the diagnostic message at the Fatal level using the specified parameter.
| |
FatalTArgument(IFormatProvider, String, TArgument) |
Writes the diagnostic message at the Fatal level using the specified parameter and formatting it with the supplied format provider.
| |
FatalTArgument1, TArgument2(String, TArgument1, TArgument2) |
Writes the diagnostic message at the Fatal level using the specified parameters.
| |
FatalTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the Fatal level using the specified arguments formatting it with the supplied format provider.
| |
FatalTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Fatal level using the specified parameters.
| |
FatalTArgument1, TArgument2, TArgument3(IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Fatal level using the specified arguments formatting it with the supplied format provider.
| |
Info(LogMessageGenerator) |
Writes the diagnostic message at the Info level.
| |
Info(String) |
Writes the diagnostic message at the Info level.
| |
Info(Exception, String) |
Writes the diagnostic message and exception at the Info level.
| |
Info(String, Object) |
Writes the diagnostic message at the Info level using the specified parameters.
| |
Info(Exception, String, Object) |
Writes the diagnostic message and exception at the Info level.
| |
Info(IFormatProvider, String, Object) |
Writes the diagnostic message at the Info level using the specified parameters and formatting them with the supplied format provider.
| |
Info(Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the Info level.
| |
InfoT(T) |
Writes the diagnostic message at the Info level.
| |
InfoT(IFormatProvider, T) |
Writes the diagnostic message at the Info level.
| |
InfoTArgument(String, TArgument) |
Writes the diagnostic message at the Info level using the specified parameter.
| |
InfoTArgument(IFormatProvider, String, TArgument) |
Writes the diagnostic message at the Info level using the specified parameter and formatting it with the supplied format provider.
| |
InfoTArgument1, TArgument2(String, TArgument1, TArgument2) |
Writes the diagnostic message at the Info level using the specified parameters.
| |
InfoTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the Info level using the specified arguments formatting it with the supplied format provider.
| |
InfoTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Info level using the specified parameters.
| |
InfoTArgument1, TArgument2, TArgument3(IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Info level using the specified arguments formatting it with the supplied format provider.
| |
IsEnabled |
Gets a value indicating whether logging is enabled for the specified level.
| |
Log(LogEventInfo) |
Writes the specified diagnostic message.
| |
Log(LogLevel, LogMessageGenerator) |
Writes the diagnostic message at the specified level.
| |
Log(LogLevel, String) |
Writes the diagnostic message at the specified level.
| |
Log(Type, LogEventInfo) |
Writes the specified diagnostic message.
| |
Log(LogLevel, String, Object) |
Writes the diagnostic message at the specified level using the specified parameters.
| |
Log(LogLevel, Exception, String, Object) |
Writes the diagnostic message and exception at the specified level.
| |
Log(LogLevel, IFormatProvider, String, Object) |
Writes the diagnostic message at the specified level using the specified parameters and formatting them with the supplied format provider.
| |
Log(LogLevel, Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the specified level.
| |
LogT(LogLevel, T) |
Writes the diagnostic message at the specified level.
| |
LogT(LogLevel, IFormatProvider, T) |
Writes the diagnostic message at the specified level.
| |
LogTArgument(LogLevel, String, TArgument) |
Writes the diagnostic message at the specified level using the specified parameter.
| |
LogTArgument(LogLevel, IFormatProvider, String, TArgument) |
Writes the diagnostic message at the specified level using the specified parameter and formatting it with the supplied format provider.
| |
LogTArgument1, TArgument2(LogLevel, String, TArgument1, TArgument2) |
Writes the diagnostic message at the specified level using the specified parameters.
| |
LogTArgument1, TArgument2(LogLevel, IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the specified level using the specified arguments formatting it with the supplied format provider.
| |
LogTArgument1, TArgument2, TArgument3(LogLevel, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the specified level using the specified parameters.
| |
LogTArgument1, TArgument2, TArgument3(LogLevel, IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the specified level using the specified arguments formatting it with the supplied format provider.
| |
OnLoggerReconfigured |
Raises the event when the logger is reconfigured.
| |
PushScopeNested(Object) |
Pushes new state on the logical context scope stack
| |
PushScopeNestedT(T) |
Pushes new state on the logical context scope stack
| |
PushScopeProperties(IReadOnlyCollectionKeyValuePairString, Object) |
Updates the ScopeContext with provided properties
| |
PushScopePropertiesTValue(IReadOnlyCollectionKeyValuePairString, TValue) |
Updates the ScopeContext with provided properties
| |
PushScopeProperty(String, Object) |
Updates the ScopeContext with provided property
| |
PushScopePropertyTValue(String, TValue) |
Updates the ScopeContext with provided property
| |
Swallow(Action) |
Runs the provided action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method.
| |
Swallow(Task) |
Logs an exception is logged at Error level if the provided task does not run to completion.
| |
SwallowT(FuncT) |
Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level.
The exception is not propagated outside of this method; a default value is returned instead.
| |
SwallowT(FuncT, T) |
Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level.
The exception is not propagated outside of this method; a fallback value is returned instead.
| |
SwallowAsync(FuncTask) |
Runs async action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method.
| |
SwallowAsync(Task) |
Returns a task that completes when a specified task to completes. If the task does not run to completion, an exception is logged at Error level. The returned task always runs to completion.
| |
SwallowAsyncTResult(FuncTaskTResult) |
Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level.
The exception is not propagated outside of this method; a default value is returned instead.
| |
SwallowAsyncTResult(FuncTaskTResult, TResult) |
Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level.
The exception is not propagated outside of this method; a fallback value is returned instead.
| |
Trace(LogMessageGenerator) |
Writes the diagnostic message at the Trace level.
| |
Trace(String) |
Writes the diagnostic message at the Trace level.
| |
Trace(Exception, String) |
Writes the diagnostic message and exception at the Trace level.
| |
Trace(String, Object) |
Writes the diagnostic message at the Trace level using the specified parameters.
| |
Trace(Exception, String, Object) |
Writes the diagnostic message and exception at the Trace level.
| |
Trace(IFormatProvider, String, Object) |
Writes the diagnostic message at the Trace level using the specified parameters and formatting them with the supplied format provider.
| |
Trace(Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the Trace level.
| |
TraceT(T) |
Writes the diagnostic message at the Trace level.
| |
TraceT(IFormatProvider, T) |
Writes the diagnostic message at the Trace level.
| |
TraceTArgument(String, TArgument) |
Writes the diagnostic message at the Trace level using the specified parameter.
| |
TraceTArgument(IFormatProvider, String, TArgument) |
Writes the diagnostic message at the Trace level using the specified parameter and formatting it with the supplied format provider.
| |
TraceTArgument1, TArgument2(String, TArgument1, TArgument2) |
Writes the diagnostic message at the Trace level using the specified parameters.
| |
TraceTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider.
| |
TraceTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Trace level using the specified parameters.
| |
TraceTArgument1, TArgument2, TArgument3(IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider.
| |
Warn(LogMessageGenerator) |
Writes the diagnostic message at the Warn level.
| |
Warn(String) |
Writes the diagnostic message at the Warn level.
| |
Warn(Exception, String) |
Writes the diagnostic message and exception at the Warn level.
| |
Warn(String, Object) |
Writes the diagnostic message at the Warn level using the specified parameters.
| |
Warn(Exception, String, Object) |
Writes the diagnostic message and exception at the Warn level.
| |
Warn(IFormatProvider, String, Object) |
Writes the diagnostic message at the Warn level using the specified parameters and formatting them with the supplied format provider.
| |
Warn(Exception, IFormatProvider, String, Object) |
Writes the diagnostic message and exception at the Warn level.
| |
WarnT(T) |
Writes the diagnostic message at the Warn level.
| |
WarnT(IFormatProvider, T) |
Writes the diagnostic message at the Warn level.
| |
WarnTArgument(String, TArgument) |
Writes the diagnostic message at the Warn level using the specified parameter.
| |
WarnTArgument(IFormatProvider, String, TArgument) |
Writes the diagnostic message at the Warn level using the specified parameter and formatting it with the supplied format provider.
| |
WarnTArgument1, TArgument2(String, TArgument1, TArgument2) |
Writes the diagnostic message at the Warn level using the specified parameters.
| |
WarnTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2) |
Writes the diagnostic message at the Warn level using the specified arguments formatting it with the supplied format provider.
| |
WarnTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Warn level using the specified parameters.
| |
WarnTArgument1, TArgument2, TArgument3(IFormatProvider, String, TArgument1, TArgument2, TArgument3) |
Writes the diagnostic message at the Warn level using the specified arguments formatting it with the supplied format provider.
| |
WithProperties |
Creates new logger that automatically appends the specified properties to all log events (without changing current logger)
With Properties property, all properties can be enumerated.
| |
WithProperty |
Creates new logger that automatically appends the specified property to all log events (without changing current logger)
With Properties property, all properties can be enumerated.
|
Name | Description | |
---|---|---|
LoggerReconfigured |
Occurs when logger configuration changes.
|
Name | Description | |
---|---|---|
ConditionalDebug(LogMessageGenerator) | Overloaded.
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebug(String) | Overloaded.
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebug(String, Object) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebug(Exception, String, Object) | Overloaded.
Writes the diagnostic message and exception at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebug(IFormatProvider, String, Object) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebug(Exception, IFormatProvider, String, Object) | Overloaded.
Writes the diagnostic message and exception at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebugT(T) | Overloaded.
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebugT(IFormatProvider, T) | Overloaded.
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebugTArgument(String, TArgument) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameter.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebugTArgument1, TArgument2(String, TArgument1, TArgument2) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalDebugTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTrace(LogMessageGenerator) | Overloaded.
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTrace(String) | Overloaded.
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTrace(String, Object) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTrace(Exception, String, Object) | Overloaded.
Writes the diagnostic message and exception at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTrace(IFormatProvider, String, Object) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTrace(Exception, IFormatProvider, String, Object) | Overloaded.
Writes the diagnostic message and exception at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTraceT(T) | Overloaded.
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTraceT(IFormatProvider, T) | Overloaded.
Writes the diagnostic message at the Debug level.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTraceTArgument(String, TArgument) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameter.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTraceTArgument1, TArgument2(String, TArgument1, TArgument2) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
ConditionalTraceTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3) | Overloaded.
Writes the diagnostic message at the Debug level using the specified parameters.
Only executed when the DEBUG conditional compilation symbol is set. (Defined by ILoggerExtensions.) | |
Debug |
Writes the diagnostic message and exception at the Debug level.
(Defined by ILoggerExtensions.) | |
Error |
Writes the diagnostic message and exception at the Error level.
(Defined by ILoggerExtensions.) | |
Fatal |
Writes the diagnostic message and exception at the Fatal level.
(Defined by ILoggerExtensions.) | |
ForDebugEvent |
Starts building a log event at the Debug level.
(Defined by ILoggerExtensions.) | |
ForErrorEvent |
Starts building a log event at the Error level.
(Defined by ILoggerExtensions.) | |
ForExceptionEvent |
Starts building a log event at the Exception level.
(Defined by ILoggerExtensions.) | |
ForFatalEvent |
Starts building a log event at the Fatal level.
(Defined by ILoggerExtensions.) | |
ForInfoEvent |
Starts building a log event at the Info level.
(Defined by ILoggerExtensions.) | |
ForLogEvent |
Starts building a log event with the specified LogLevel.
(Defined by ILoggerExtensions.) | |
ForTraceEvent |
Starts building a log event at the Trace level.
(Defined by ILoggerExtensions.) | |
ForWarnEvent |
Starts building a log event at the Warn level.
(Defined by ILoggerExtensions.) | |
Info |
Writes the diagnostic message and exception at the Info level.
(Defined by ILoggerExtensions.) | |
Log |
Writes the diagnostic message and exception at the specified level.
(Defined by ILoggerExtensions.) | |
Trace |
Writes the diagnostic message and exception at the Trace level.
(Defined by ILoggerExtensions.) | |
Warn |
Writes the diagnostic message and exception at the Warn level.
(Defined by ILoggerExtensions.) |