Click or drag to resize

ILoggerExtensions Class

Extensions for NLog ILogger.
Inheritance Hierarchy
SystemObject
  NLogILoggerExtensions

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public static class ILoggerExtensions

The ILoggerExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberConditionalDebug(ILogger, LogMessageGenerator)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebug(ILogger, String)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebug(ILogger, String, Object)
Writes the diagnostic message at the Debug level using the specified parameters. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebug(ILogger, Exception, String, Object)
Writes the diagnostic message and exception at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebug(ILogger, IFormatProvider, String, Object)
Writes the diagnostic message at the Debug level using the specified parameters. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebug(ILogger, Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebugT(ILogger, T)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebugT(ILogger, IFormatProvider, T)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebugTArgument(ILogger, String, TArgument)
Writes the diagnostic message at the Debug level using the specified parameter. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalDebugTArgument1, TArgument2(ILogger, 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.
Public methodStatic memberConditionalDebugTArgument1, TArgument2, TArgument3(ILogger, 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.
Public methodStatic memberConditionalTrace(ILogger, LogMessageGenerator)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTrace(ILogger, String)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTrace(ILogger, String, Object)
Writes the diagnostic message at the Debug level using the specified parameters. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTrace(ILogger, Exception, String, Object)
Writes the diagnostic message and exception at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTrace(ILogger, IFormatProvider, String, Object)
Writes the diagnostic message at the Debug level using the specified parameters. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTrace(ILogger, Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTraceT(ILogger, T)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTraceT(ILogger, IFormatProvider, T)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTraceTArgument(ILogger, String, TArgument)
Writes the diagnostic message at the Debug level using the specified parameter. Only executed when the DEBUG conditional compilation symbol is set.
Public methodStatic memberConditionalTraceTArgument1, TArgument2(ILogger, 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.
Public methodStatic memberConditionalTraceTArgument1, TArgument2, TArgument3(ILogger, 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.
Public methodStatic memberDebug
Writes the diagnostic message and exception at the Debug level.
Public methodStatic memberError
Writes the diagnostic message and exception at the Error level.
Public methodStatic memberFatal
Writes the diagnostic message and exception at the Fatal level.
Public methodStatic memberForDebugEvent
Starts building a log event at the Debug level.
Public methodStatic memberForErrorEvent
Starts building a log event at the Error level.
Public methodStatic memberForExceptionEvent
Starts building a log event at the Exception level.
Public methodStatic memberForFatalEvent
Starts building a log event at the Fatal level.
Public methodStatic memberForInfoEvent
Starts building a log event at the Info level.
Public methodStatic memberForLogEvent
Starts building a log event with the specified LogLevel.
Public methodStatic memberForTraceEvent
Starts building a log event at the Trace level.
Public methodStatic memberForWarnEvent
Starts building a log event at the Warn level.
Public methodStatic memberInfo
Writes the diagnostic message and exception at the Info level.
Public methodStatic memberLog
Writes the diagnostic message and exception at the specified level.
Public methodStatic memberTrace
Writes the diagnostic message and exception at the Trace level.
Public methodStatic memberWarn
Writes the diagnostic message and exception at the Warn level.
Top
See Also