ILogger Interface |
Namespace: NLog
The ILogger type exposes the following members.
| Name | Description | |
|---|---|---|
| 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 | Description | |
|---|---|---|
| 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.
| |
| 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.
|
| 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.) |