LogImpl ClassApache log4net™ SDK Documentation
Implementation of ILog wrapper interface.
Inheritance Hierarchy

SystemObject
  log4net.CoreLoggerWrapperImpl
    log4net.CoreLogImpl

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

public class LogImpl : LoggerWrapperImpl, ILog, 
	ILoggerWrapper

The LogImpl type exposes the following members.

Constructors

  NameDescription
Public methodLogImpl
Construct a new wrapper for the specified logger.
Top
Properties

  NameDescription
Public propertyIsDebugEnabled
Checks if this logger is enabled for the DEBUG level.
Public propertyIsErrorEnabled
Checks if this logger is enabled for the ERROR level.
Public propertyIsFatalEnabled
Checks if this logger is enabled for the FATAL level.
Public propertyIsInfoEnabled
Checks if this logger is enabled for the INFO level.
Public propertyIsWarnEnabled
Checks if this logger is enabled for the WARN level.
Public propertyLogger
Gets the implementation behind this wrapper object.
(Inherited from LoggerWrapperImpl.)
Top
Methods

  NameDescription
Public methodDebug(Object)
Logs a message object with the DEBUG level.
Public methodDebug(Object, Exception)
Logs a message object with the DEBUG level
Public methodDebugFormat(String, Object)
Logs a formatted message string with the DEBUG level.
Public methodDebugFormat(String, Object)
Logs a formatted message string with the DEBUG level.
Public methodDebugFormat(IFormatProvider, String, Object)
Logs a formatted message string with the DEBUG level.
Public methodDebugFormat(String, Object, Object)
Logs a formatted message string with the DEBUG level.
Public methodDebugFormat(String, Object, Object, Object)
Logs a formatted message string with the DEBUG level.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodError(Object)
Logs a message object with the ERROR level.
Public methodError(Object, Exception)
Logs a message object with the ERROR level
Public methodErrorFormat(String, Object)
Logs a formatted message string with the ERROR level.
Public methodErrorFormat(String, Object)
Logs a formatted message string with the ERROR level.
Public methodErrorFormat(IFormatProvider, String, Object)
Logs a formatted message string with the ERROR level.
Public methodErrorFormat(String, Object, Object)
Logs a formatted message string with the ERROR level.
Public methodErrorFormat(String, Object, Object, Object)
Logs a formatted message string with the ERROR level.
Public methodFatal(Object)
Logs a message object with the FATAL level.
Public methodFatal(Object, Exception)
Logs a message object with the FATAL level
Public methodFatalFormat(String, Object)
Logs a formatted message string with the FATAL level.
Public methodFatalFormat(String, Object)
Logs a formatted message string with the FATAL level.
Public methodFatalFormat(IFormatProvider, String, Object)
Logs a formatted message string with the FATAL level.
Public methodFatalFormat(String, Object, Object)
Logs a formatted message string with the FATAL level.
Public methodFatalFormat(String, Object, Object, Object)
Logs a formatted message string with the FATAL level.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInfo(Object)
Logs a message object with the INFO level.
Public methodInfo(Object, Exception)
Logs a message object with the INFO level.
Public methodInfoFormat(String, Object)
Logs a formatted message string with the INFO level.
Public methodInfoFormat(String, Object)
Logs a formatted message string with the INFO level.
Public methodInfoFormat(IFormatProvider, String, Object)
Logs a formatted message string with the INFO level.
Public methodInfoFormat(String, Object, Object)
Logs a formatted message string with the INFO level.
Public methodInfoFormat(String, Object, Object, Object)
Logs a formatted message string with the INFO level.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodReloadLevels
Virtual method called when the configuration of the repository changes
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodWarn(Object)
Logs a message object with the WARN level.
Public methodWarn(Object, Exception)
Logs a message object with the WARN level
Public methodWarnFormat(String, Object)
Logs a formatted message string with the WARN level.
Public methodWarnFormat(String, Object)
Logs a formatted message string with the WARN level.
Public methodWarnFormat(IFormatProvider, String, Object)
Logs a formatted message string with the WARN level.
Public methodWarnFormat(String, Object, Object)
Logs a formatted message string with the WARN level.
Public methodWarnFormat(String, Object, Object, Object)
Logs a formatted message string with the WARN level.
Top
Extension Methods

  NameDescription
Public Extension MethodDebugExt(FuncTResult)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodDebugExt(Object)Overloaded.
Log a message object with the Debug level.
(Defined by ILogExtensions.)
Public Extension MethodDebugExt(FuncTResult, Void)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodDebugExt(Object, Exception)Overloaded.
Log a message object with the Debug level including the stack trace of the Exception passed as a parameter.
(Defined by ILogExtensions.)
Public Extension MethodDebugFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Debug level.
(Defined by ILogExtensions.)
Public Extension MethodDebugFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Debug level.
(Defined by ILogExtensions.)
Public Extension MethodDebugFormatExt(IFormatProvider, String, Object)Overloaded.
Logs a formatted message string with the Debug level.
(Defined by ILogExtensions.)
Public Extension MethodDebugFormatExt(String, Object, Object)Overloaded.
Logs a formatted message string with the Debug level.
(Defined by ILogExtensions.)
Public Extension MethodDebugFormatExt(String, Object, Object, Object)Overloaded.
Logs a formatted message string with the Debug level.
(Defined by ILogExtensions.)
Public Extension MethodErrorExt(FuncTResult)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodErrorExt(Object)Overloaded.
Log a message object with the Error level.
(Defined by ILogExtensions.)
Public Extension MethodErrorExt(FuncTResult, Void)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodErrorExt(Object, Exception)Overloaded.
Log a message object with the Error level including the stack trace of the Exception passed as a parameter.
(Defined by ILogExtensions.)
Public Extension MethodErrorFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Error level.
(Defined by ILogExtensions.)
Public Extension MethodErrorFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Error level.
(Defined by ILogExtensions.)
Public Extension MethodErrorFormatExt(IFormatProvider, String, Object)Overloaded.
Logs a formatted message string with the Error level.
(Defined by ILogExtensions.)
Public Extension MethodErrorFormatExt(String, Object, Object)Overloaded.
Logs a formatted message string with the Error level.
(Defined by ILogExtensions.)
Public Extension MethodErrorFormatExt(String, Object, Object, Object)Overloaded.
Logs a formatted message string with the Error level.
(Defined by ILogExtensions.)
Public Extension MethodFatalExt(FuncTResult)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodFatalExt(Object)Overloaded.
Log a message object with the Fatal level.
(Defined by ILogExtensions.)
Public Extension MethodFatalExt(FuncTResult, Void)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodFatalExt(Object, Exception)Overloaded.
Log a message object with the Fatal level including the stack trace of the Exception passed as a parameter.
(Defined by ILogExtensions.)
Public Extension MethodFatalFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Fatal level.
(Defined by ILogExtensions.)
Public Extension MethodFatalFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Fatal level.
(Defined by ILogExtensions.)
Public Extension MethodFatalFormatExt(IFormatProvider, String, Object)Overloaded.
Logs a formatted message string with the Fatal level.
(Defined by ILogExtensions.)
Public Extension MethodFatalFormatExt(String, Object, Object)Overloaded.
Logs a formatted message string with the Fatal level.
(Defined by ILogExtensions.)
Public Extension MethodFatalFormatExt(String, Object, Object, Object)Overloaded.
Logs a formatted message string with the Fatal level.
(Defined by ILogExtensions.)
Public Extension MethodInfoExt(FuncTResult)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodInfoExt(Object)Overloaded.
Log a message object with the Info level.
(Defined by ILogExtensions.)
Public Extension MethodInfoExt(FuncTResult, Void)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodInfoExt(Object, Exception)Overloaded.
Log a message object with the Info level including the stack trace of the Exception passed as a parameter.
(Defined by ILogExtensions.)
Public Extension MethodInfoFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Info level.
(Defined by ILogExtensions.)
Public Extension MethodInfoFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Info level.
(Defined by ILogExtensions.)
Public Extension MethodInfoFormatExt(IFormatProvider, String, Object)Overloaded.
Logs a formatted message string with the Info level.
(Defined by ILogExtensions.)
Public Extension MethodInfoFormatExt(String, Object, Object)Overloaded.
Logs a formatted message string with the Info level.
(Defined by ILogExtensions.)
Public Extension MethodInfoFormatExt(String, Object, Object, Object)Overloaded.
Logs a formatted message string with the Info level.
(Defined by ILogExtensions.)
Public Extension MethodWarnExt(FuncTResult)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodWarnExt(Object)Overloaded.
Log a message object with the Warn level.
(Defined by ILogExtensions.)
Public Extension MethodWarnExt(FuncTResult, Void)Overloaded. (Defined by ILogExtensions.)
Public Extension MethodWarnExt(Object, Exception)Overloaded.
Log a message object with the Warn level including the stack trace of the Exception passed as a parameter.
(Defined by ILogExtensions.)
Public Extension MethodWarnFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Warn level.
(Defined by ILogExtensions.)
Public Extension MethodWarnFormatExt(String, Object)Overloaded.
Logs a formatted message string with the Warn level.
(Defined by ILogExtensions.)
Public Extension MethodWarnFormatExt(IFormatProvider, String, Object)Overloaded.
Logs a formatted message string with the Warn level.
(Defined by ILogExtensions.)
Public Extension MethodWarnFormatExt(String, Object, Object)Overloaded.
Logs a formatted message string with the Warn level.
(Defined by ILogExtensions.)
Public Extension MethodWarnFormatExt(String, Object, Object, Object)Overloaded.
Logs a formatted message string with the Warn level.
(Defined by ILogExtensions.)
Top
Remarks

This implementation of the ILog interface forwards to the ILogger held by the base class.

This logger has methods to allow the caller to log at the following levels:

DEBUG
The [M:Debug(object)] and [M:DebugFormat(string, object[])] methods log messages at the DEBUG level. That is the level with that name defined in the repositories LevelMap. The default value for this level is Debug. The IsDebugEnabled property tests if this level is enabled for logging.
INFO
The [M:Info(object)] and [M:InfoFormat(string, object[])] methods log messages at the INFO level. That is the level with that name defined in the repositories LevelMap. The default value for this level is Info. The IsInfoEnabled property tests if this level is enabled for logging.
WARN
The [M:Warn(object)] and [M:WarnFormat(string, object[])] methods log messages at the WARN level. That is the level with that name defined in the repositories LevelMap. The default value for this level is Warn. The IsWarnEnabled property tests if this level is enabled for logging.
ERROR
The [M:Error(object)] and [M:ErrorFormat(string, object[])] methods log messages at the ERROR level. That is the level with that name defined in the repositories LevelMap. The default value for this level is Error. The IsErrorEnabled property tests if this level is enabled for logging.
FATAL
The [M:Fatal(object)] and [M:FatalFormat(string, object[])] methods log messages at the FATAL level. That is the level with that name defined in the repositories LevelMap. The default value for this level is Fatal. The IsFatalEnabled property tests if this level is enabled for logging.

The values for these levels and their semantic meanings can be changed by configuring the LevelMap for the repository.

See Also

Reference