Click or drag to resize

Logger Class

Provides logging interface and utility functions.
Provides logging interface and utility functions.
Inheritance Hierarchy
SystemObject
  NLogLogger
    NLogNullLogger

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public class Logger : ILogger, ISuppress, 
	ILoggerBase

The Logger type exposes the following members.

Constructors
  NameDescription
Protected methodLogger
Initializes a new instance of the Logger class.
Top
Properties
  NameDescription
Public propertyFactory
Gets the factory that created this logger.
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.
Public propertyName
Gets the name of the logger.
Public propertyProperties
Collection of context properties for the Logger. The logger will append it for all log events
Top
Methods
  NameDescription
Public methodConditionalDebug(LogMessageGenerator)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalDebug(Object)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalDebug(String)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalDebug(IFormatProvider, Object)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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 methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(Exception, String, Object)
Writes the diagnostic message and exception at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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.
Public methodConditionalDebug(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 methodConditionalDebug(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.
Public methodConditionalDebugT(T)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalDebugT(IFormatProvider, T)
Writes the diagnostic message at the Debug level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalDebugTArgument(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 methodConditionalDebugTArgument(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.
Public methodConditionalDebugTArgument1, 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.
Public methodConditionalDebugTArgument1, 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.
Public methodConditionalDebugTArgument1, 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.
Public methodConditionalDebugTArgument1, 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.
Public methodConditionalTrace(LogMessageGenerator)
Writes the diagnostic message at the Trace level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTrace(Object)
Writes the diagnostic message at the Trace level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTrace(String)
Writes the diagnostic message at the Trace level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTrace(IFormatProvider, Object)
Writes the diagnostic message at the Trace level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(String, Object)
Writes the diagnostic message at the Trace level using the specified parameters. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(Exception, String, Object)
Writes the diagnostic message and exception at the Trace level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(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.
Public methodConditionalTrace(Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the Trace level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTrace(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.
Public methodConditionalTraceT(T)
Writes the diagnostic message at the Trace level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTraceT(IFormatProvider, T)
Writes the diagnostic message at the Trace level. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTraceTArgument(String, TArgument)
Writes the diagnostic message at the Trace level using the specified parameter. Only executed when the DEBUG conditional compilation symbol is set.
Public methodConditionalTraceTArgument(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.
Public methodConditionalTraceTArgument1, 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.
Public methodConditionalTraceTArgument1, 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.
Public methodConditionalTraceTArgument1, 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.
Public methodConditionalTraceTArgument1, 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.
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 methodIsEnabled
Gets a value indicating whether logging is enabled for the specified level.
Public methodLog(LogEventInfo)
Writes the specified diagnostic message.
Public methodLog(LogLevel, LogMessageGenerator)
Writes the diagnostic message at the specified level.
Public methodLog(LogLevel, String)
Writes the diagnostic message at the specified level.
Public methodLog(Type, LogEventInfo)
Writes the specified diagnostic message.
Public methodLog(LogLevel, String, Object)
Writes the diagnostic message at the specified level using the specified parameters.
Public methodLog(LogLevel, Exception, String, Object)
Writes the diagnostic message and exception at the specified level.
Public methodLog(LogLevel, IFormatProvider, String, Object)
Writes the diagnostic message at the specified level using the specified parameters and formatting them with the supplied format provider.
Public methodLog(LogLevel, Exception, IFormatProvider, String, Object)
Writes the diagnostic message and exception at the specified level.
Public methodLogT(LogLevel, T)
Writes the diagnostic message at the specified level.
Public methodLogT(LogLevel, IFormatProvider, T)
Writes the diagnostic message at the specified level.
Public methodLogTArgument(LogLevel, String, TArgument)
Writes the diagnostic message at the specified level using the specified parameter.
Public methodLogTArgument(LogLevel, IFormatProvider, String, TArgument)
Writes the diagnostic message at the specified level using the specified parameter and formatting it with the supplied format provider.
Public methodLogTArgument1, TArgument2(LogLevel, String, TArgument1, TArgument2)
Writes the diagnostic message at the specified level using the specified parameters.
Public methodLogTArgument1, 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.
Public methodLogTArgument1, TArgument2, TArgument3(LogLevel, String, TArgument1, TArgument2, TArgument3)
Writes the diagnostic message at the specified level using the specified parameters.
Public methodLogTArgument1, 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.
Protected methodOnLoggerReconfigured
Raises the event when the logger is reconfigured.
Public methodPushScopeNested(Object)
Pushes new state on the logical context scope stack
Public methodPushScopeNestedT(T)
Pushes new state on the logical context scope stack
Public methodPushScopeProperties(IReadOnlyCollectionKeyValuePairString, Object)
Updates the ScopeContext with provided properties
Public methodPushScopePropertiesTValue(IReadOnlyCollectionKeyValuePairString, TValue)
Updates the ScopeContext with provided properties
Public methodPushScopeProperty(String, Object)
Updates the ScopeContext with provided property
Public methodPushScopePropertyTValue(String, TValue)
Updates the ScopeContext with provided property
Public methodSwallow(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.
Public methodSwallow(Task)
Logs an exception is logged at Error level if the provided task does not run to completion.
Public methodSwallowT(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.
Public methodSwallowT(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.
Public methodSwallowAsync(FuncTask)
Runs async action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method.
Public methodSwallowAsync(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.
Public methodSwallowAsyncTResult(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.
Public methodSwallowAsyncTResult(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.
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.
Public methodWithProperties
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.
Public methodWithProperty
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.
Top
Events
  NameDescription
Public eventLoggerReconfigured
Occurs when logger configuration changes.
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