Click or drag to resize

ILogger Interface

Provides logging interface and utility functions.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public interface ILogger : ISuppress, 
	ILoggerBase

The ILogger type exposes the following members.

Properties
  NameDescription
Public propertyIsDebugEnabled
Gets a value indicating whether logging is enabled for the Debug level.
Public propertyIsErrorEnabled
Gets a value indicating whether logging is enabled for the Error level.
Public propertyIsFatalEnabled
Gets a value indicating whether logging is enabled for the Fatal level.
Public propertyIsInfoEnabled
Gets a value indicating whether logging is enabled for the Info level.
Public propertyIsTraceEnabled
Gets a value indicating whether logging is enabled for the Trace level.
Public propertyIsWarnEnabled
Gets a value indicating whether logging is enabled for the Warn level.
Top
Methods
  NameDescription
Public methodDebug(LogMessageGenerator)
Writes the diagnostic message at the Debug level.
Public methodDebug(String)
Writes the diagnostic message at the Debug level.
Public methodDebug(Exception, String)
Writes the diagnostic message and exception at the Debug level.
Public methodDebug(String, Object)
Writes the diagnostic message at the Debug level using the specified parameters.
Public methodDebug(Exception, String, Object)
Writes the diagnostic message and exception at the Debug level.
Public methodDebug(IFormatProvider, String, Object)
Writes the diagnostic message at the Debug level using the specified parameters and formatting them with the supplied format provider.
Public methodDebug(Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Debug level.
Public methodDebugT(T)
Writes the diagnostic message at the Debug level.
Public methodDebugT(IFormatProvider, T)
Writes the diagnostic message at the Debug level.
Public methodDebugTArgument(String, TArgument)
Writes the diagnostic message at the Debug level using the specified parameter.
Public methodDebugTArgument(IFormatProvider, String, TArgument)
Writes the diagnostic message at the Debug level using the specified parameter and formatting it with the supplied format provider.
Public methodDebugTArgument1, TArgument2(String, TArgument1, TArgument2)
Writes the diagnostic message at the Debug level using the specified parameters.
Public methodDebugTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2)
Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider.
Public methodDebugTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3)
Writes the diagnostic message at the Debug level using the specified parameters.
Public methodDebugTArgument1, 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.
Public methodError(LogMessageGenerator)
Writes the diagnostic message at the Error level.
Public methodError(String)
Writes the diagnostic message at the Error level.
Public methodError(Exception, String)
Writes the diagnostic message and exception at the Error level.
Public methodError(String, Object)
Writes the diagnostic message at the Error level using the specified parameters.
Public methodError(Exception, String, Object)
Writes the diagnostic message and exception at the Error level.
Public methodError(IFormatProvider, String, Object)
Writes the diagnostic message at the Error level using the specified parameters and formatting them with the supplied format provider.
Public methodError(Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Error level.
Public methodErrorT(T)
Writes the diagnostic message at the Error level.
Public methodErrorT(IFormatProvider, T)
Writes the diagnostic message at the Error level.
Public methodErrorTArgument(String, TArgument)
Writes the diagnostic message at the Error level using the specified parameter.
Public methodErrorTArgument(IFormatProvider, String, TArgument)
Writes the diagnostic message at the Error level using the specified parameter and formatting it with the supplied format provider.
Public methodErrorTArgument1, TArgument2(String, TArgument1, TArgument2)
Writes the diagnostic message at the Error level using the specified parameters.
Public methodErrorTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2)
Writes the diagnostic message at the Error level using the specified arguments formatting it with the supplied format provider.
Public methodErrorTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3)
Writes the diagnostic message at the Error level using the specified parameters.
Public methodErrorTArgument1, 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.
Public methodFatal(LogMessageGenerator)
Writes the diagnostic message at the Fatal level.
Public methodFatal(String)
Writes the diagnostic message at the Fatal level.
Public methodFatal(Exception, String)
Writes the diagnostic message and exception at the Fatal level.
Public methodFatal(String, Object)
Writes the diagnostic message at the Fatal level using the specified parameters.
Public methodFatal(Exception, String, Object)
Writes the diagnostic message and exception at the Fatal level.
Public methodFatal(IFormatProvider, String, Object)
Writes the diagnostic message at the Fatal level using the specified parameters and formatting them with the supplied format provider.
Public methodFatal(Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Fatal level.
Public methodFatalT(T)
Writes the diagnostic message at the Fatal level.
Public methodFatalT(IFormatProvider, T)
Writes the diagnostic message at the Fatal level.
Public methodFatalTArgument(String, TArgument)
Writes the diagnostic message at the Fatal level using the specified parameter.
Public methodFatalTArgument(IFormatProvider, String, TArgument)
Writes the diagnostic message at the Fatal level using the specified parameter and formatting it with the supplied format provider.
Public methodFatalTArgument1, TArgument2(String, TArgument1, TArgument2)
Writes the diagnostic message at the Fatal level using the specified parameters.
Public methodFatalTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2)
Writes the diagnostic message at the Fatal level using the specified arguments formatting it with the supplied format provider.
Public methodFatalTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3)
Writes the diagnostic message at the Fatal level using the specified parameters.
Public methodFatalTArgument1, 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.
Public methodInfo(LogMessageGenerator)
Writes the diagnostic message at the Info level.
Public methodInfo(String)
Writes the diagnostic message at the Info level.
Public methodInfo(Exception, String)
Writes the diagnostic message and exception at the Info level.
Public methodInfo(String, Object)
Writes the diagnostic message at the Info level using the specified parameters.
Public methodInfo(Exception, String, Object)
Writes the diagnostic message and exception at the Info level.
Public methodInfo(IFormatProvider, String, Object)
Writes the diagnostic message at the Info level using the specified parameters and formatting them with the supplied format provider.
Public methodInfo(Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Info level.
Public methodInfoT(T)
Writes the diagnostic message at the Info level.
Public methodInfoT(IFormatProvider, T)
Writes the diagnostic message at the Info level.
Public methodInfoTArgument(String, TArgument)
Writes the diagnostic message at the Info level using the specified parameter.
Public methodInfoTArgument(IFormatProvider, String, TArgument)
Writes the diagnostic message at the Info level using the specified parameter and formatting it with the supplied format provider.
Public methodInfoTArgument1, TArgument2(String, TArgument1, TArgument2)
Writes the diagnostic message at the Info level using the specified parameters.
Public methodInfoTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2)
Writes the diagnostic message at the Info level using the specified arguments formatting it with the supplied format provider.
Public methodInfoTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3)
Writes the diagnostic message at the Info level using the specified parameters.
Public methodInfoTArgument1, 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.
Public methodTrace(LogMessageGenerator)
Writes the diagnostic message at the Trace level.
Public methodTrace(String)
Writes the diagnostic message at the Trace level.
Public methodTrace(Exception, String)
Writes the diagnostic message and exception at the Trace level.
Public methodTrace(String, Object)
Writes the diagnostic message at the Trace level using the specified parameters.
Public methodTrace(Exception, String, Object)
Writes the diagnostic message and exception at the Trace level.
Public methodTrace(IFormatProvider, String, Object)
Writes the diagnostic message at the Trace level using the specified parameters and formatting them with the supplied format provider.
Public methodTrace(Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Trace level.
Public methodTraceT(T)
Writes the diagnostic message at the Trace level.
Public methodTraceT(IFormatProvider, T)
Writes the diagnostic message at the Trace level.
Public methodTraceTArgument(String, TArgument)
Writes the diagnostic message at the Trace level using the specified parameter.
Public methodTraceTArgument(IFormatProvider, String, TArgument)
Writes the diagnostic message at the Trace level using the specified parameter and formatting it with the supplied format provider.
Public methodTraceTArgument1, TArgument2(String, TArgument1, TArgument2)
Writes the diagnostic message at the Trace level using the specified parameters.
Public methodTraceTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2)
Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider.
Public methodTraceTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3)
Writes the diagnostic message at the Trace level using the specified parameters.
Public methodTraceTArgument1, 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.
Public methodWarn(LogMessageGenerator)
Writes the diagnostic message at the Warn level.
Public methodWarn(String)
Writes the diagnostic message at the Warn level.
Public methodWarn(Exception, String)
Writes the diagnostic message and exception at the Warn level.
Public methodWarn(String, Object)
Writes the diagnostic message at the Warn level using the specified parameters.
Public methodWarn(Exception, String, Object)
Writes the diagnostic message and exception at the Warn level.
Public methodWarn(IFormatProvider, String, Object)
Writes the diagnostic message at the Warn level using the specified parameters and formatting them with the supplied format provider.
Public methodWarn(Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Warn level.
Public methodWarnT(T)
Writes the diagnostic message at the Warn level.
Public methodWarnT(IFormatProvider, T)
Writes the diagnostic message at the Warn level.
Public methodWarnTArgument(String, TArgument)
Writes the diagnostic message at the Warn level using the specified parameter.
Public methodWarnTArgument(IFormatProvider, String, TArgument)
Writes the diagnostic message at the Warn level using the specified parameter and formatting it with the supplied format provider.
Public methodWarnTArgument1, TArgument2(String, TArgument1, TArgument2)
Writes the diagnostic message at the Warn level using the specified parameters.
Public methodWarnTArgument1, TArgument2(IFormatProvider, String, TArgument1, TArgument2)
Writes the diagnostic message at the Warn level using the specified arguments formatting it with the supplied format provider.
Public methodWarnTArgument1, TArgument2, TArgument3(String, TArgument1, TArgument2, TArgument3)
Writes the diagnostic message at the Warn level using the specified parameters.
Public methodWarnTArgument1, 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.
Top
Extension Methods
  NameDescription
Public Extension MethodConditionalDebug(LogMessageGenerator)Overloaded.
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
(Defined by ILoggerExtensions.)
Public Extension MethodConditionalDebug(String)Overloaded.
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
(Defined by ILoggerExtensions.)
Public Extension MethodConditionalDebug(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.)
Public Extension MethodConditionalDebug(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.)
Public Extension MethodConditionalDebug(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.)
Public Extension MethodConditionalDebug(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.)
Public Extension MethodConditionalDebugT(T)Overloaded.
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
(Defined by ILoggerExtensions.)
Public Extension MethodConditionalDebugT(IFormatProvider, T)Overloaded.
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
(Defined by ILoggerExtensions.)
Public Extension MethodConditionalDebugTArgument(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.)
Public Extension MethodConditionalDebugTArgument1, 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.)
Public Extension MethodConditionalDebugTArgument1, 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.)
Public Extension MethodConditionalTrace(LogMessageGenerator)Overloaded.
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
(Defined by ILoggerExtensions.)
Public Extension MethodConditionalTrace(String)Overloaded.
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
(Defined by ILoggerExtensions.)
Public Extension MethodConditionalTrace(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.)
Public Extension MethodConditionalTrace(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.)
Public Extension MethodConditionalTrace(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.)
Public Extension MethodConditionalTrace(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.)
Public Extension MethodConditionalTraceT(T)Overloaded.
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
(Defined by ILoggerExtensions.)
Public Extension MethodConditionalTraceT(IFormatProvider, T)Overloaded.
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
(Defined by ILoggerExtensions.)
Public Extension MethodConditionalTraceTArgument(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.)
Public Extension MethodConditionalTraceTArgument1, 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.)
Public Extension MethodConditionalTraceTArgument1, 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.)
Public Extension MethodDebug
Writes the diagnostic message and exception at the Debug level.
(Defined by ILoggerExtensions.)
Public Extension MethodError
Writes the diagnostic message and exception at the Error level.
(Defined by ILoggerExtensions.)
Public Extension MethodFatal
Writes the diagnostic message and exception at the Fatal level.
(Defined by ILoggerExtensions.)
Public Extension MethodForDebugEvent
Starts building a log event at the Debug level.
(Defined by ILoggerExtensions.)
Public Extension MethodForErrorEvent
Starts building a log event at the Error level.
(Defined by ILoggerExtensions.)
Public Extension MethodForExceptionEvent
Starts building a log event at the Exception level.
(Defined by ILoggerExtensions.)
Public Extension MethodForFatalEvent
Starts building a log event at the Fatal level.
(Defined by ILoggerExtensions.)
Public Extension MethodForInfoEvent
Starts building a log event at the Info level.
(Defined by ILoggerExtensions.)
Public Extension MethodForLogEvent
Starts building a log event with the specified LogLevel.
(Defined by ILoggerExtensions.)
Public Extension MethodForTraceEvent
Starts building a log event at the Trace level.
(Defined by ILoggerExtensions.)
Public Extension MethodForWarnEvent
Starts building a log event at the Warn level.
(Defined by ILoggerExtensions.)
Public Extension MethodInfo
Writes the diagnostic message and exception at the Info level.
(Defined by ILoggerExtensions.)
Public Extension MethodLog
Writes the diagnostic message and exception at the specified level.
(Defined by ILoggerExtensions.)
Public Extension MethodTrace
Writes the diagnostic message and exception at the Trace level.
(Defined by ILoggerExtensions.)
Public Extension MethodWarn
Writes the diagnostic message and exception at the Warn level.
(Defined by ILoggerExtensions.)
Top
See Also