LogImpl Class | Apache log4net™ SDK Documentation

Implementation of ILog wrapper interface.
Inheritance Hierarchy

System
Object
log4net.Core
LoggerWrapperImpl
log4net.Core
LogImpl

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

C#
VB
C++
F#
Copy

    public class LogImpl : LoggerWrapperImpl, ILog,
    	ILoggerWrapper

    Public Class LogImpl
    	Inherits LoggerWrapperImpl
    	Implements ILog, ILoggerWrapper

    public ref class LogImpl : public LoggerWrapperImpl,
    	ILog, ILoggerWrapper

    type LogImpl =
        class
            inherit LoggerWrapperImpl
            interface ILog
            interface ILoggerWrapper
        end

The LogImpl type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| LogImpl | Construct a new wrapper for the specified logger.

Top
Properties

| Name | Description
--- | --- | ---
| IsDebugEnabled | Checks if this logger is enabled for the DEBUG level.
| IsErrorEnabled | Checks if this logger is enabled for the ERROR level.
| IsFatalEnabled | Checks if this logger is enabled for the FATAL level.
| IsInfoEnabled | Checks if this logger is enabled for the INFO level.
| IsWarnEnabled | Checks if this logger is enabled for the WARN level.
| Logger | Gets the implementation behind this wrapper object. (Inherited from LoggerWrapperImpl.)

Top
Methods

| Name | Description
--- | --- | ---
| Debug(Object) | Logs a message object with the DEBUG level.
| Debug(Object, Exception) | Logs a message object with the DEBUG level
| DebugFormat(String, Object) | Logs a formatted message string with the DEBUG level.
| DebugFormat(String, Object ) | Logs a formatted message string with the DEBUG level.
| DebugFormat(IFormatProvider, String, Object ) | Logs a formatted message string with the DEBUG level.
| DebugFormat(String, Object, Object) | Logs a formatted message string with the DEBUG level.
| DebugFormat(String, Object, Object, Object) | Logs a formatted message string with the DEBUG level.
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Error(Object) | Logs a message object with the ERROR level.
| Error(Object, Exception) | Logs a message object with the ERROR level
| ErrorFormat(String, Object) | Logs a formatted message string with the ERROR level.
| ErrorFormat(String, Object ) | Logs a formatted message string with the ERROR level.
| ErrorFormat(IFormatProvider, String, Object ) | Logs a formatted message string with the ERROR level.
| ErrorFormat(String, Object, Object) | Logs a formatted message string with the ERROR level.
| ErrorFormat(String, Object, Object, Object) | Logs a formatted message string with the ERROR level.
| Fatal(Object) | Logs a message object with the FATAL level.
| Fatal(Object, Exception) | Logs a message object with the FATAL level
| FatalFormat(String, Object) | Logs a formatted message string with the FATAL level.
| FatalFormat(String, Object ) | Logs a formatted message string with the FATAL level.
| FatalFormat(IFormatProvider, String, Object ) | Logs a formatted message string with the FATAL level.
| FatalFormat(String, Object, Object) | Logs a formatted message string with the FATAL level.
| FatalFormat(String, Object, Object, Object) | Logs a formatted message string with the FATAL level.
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| Info(Object) | Logs a message object with the INFO level.
| Info(Object, Exception) | Logs a message object with the INFO level.
| InfoFormat(String, Object) | Logs a formatted message string with the INFO level.
| InfoFormat(String, Object ) | Logs a formatted message string with the INFO level.
| InfoFormat(IFormatProvider, String, Object ) | Logs a formatted message string with the INFO level.
| InfoFormat(String, Object, Object) | Logs a formatted message string with the INFO level.
| InfoFormat(String, Object, Object, Object) | Logs a formatted message string with the INFO level.
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| ReloadLevels | Virtual method called when the configuration of the repository changes
| ToString | Returns a String that represents the current Object. (Inherited from Object.)
| Warn(Object) | Logs a message object with the WARN level.
| Warn(Object, Exception) | Logs a message object with the WARN level
| WarnFormat(String, Object) | Logs a formatted message string with the WARN level.
| WarnFormat(String, Object ) | Logs a formatted message string with the WARN level.
| WarnFormat(IFormatProvider, String, Object ) | Logs a formatted message string with the WARN level.
| WarnFormat(String, Object, Object) | Logs a formatted message string with the WARN level.
| WarnFormat(String, Object, Object, Object) | Logs a formatted message string with the WARN level.

Top
Extension Methods

| Name | Description
--- | --- | ---
| DebugExt(Func TResult ) | Overloaded. (Defined by ILogExtensions.)
| DebugExt(Object) | Overloaded. Log a message object with the Debug level. (Defined by ILogExtensions.)
| DebugExt(Func TResult , Void) | Overloaded. (Defined by ILogExtensions.)
| DebugExt(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.)
| DebugFormatExt(String, Object) | Overloaded. Logs a formatted message string with the Debug level. (Defined by ILogExtensions.)
| DebugFormatExt(String, Object ) | Overloaded. Logs a formatted message string with the Debug level. (Defined by ILogExtensions.)
| DebugFormatExt(IFormatProvider, String, Object ) | Overloaded. Logs a formatted message string with the Debug level. (Defined by ILogExtensions.)
| DebugFormatExt(String, Object, Object) | Overloaded. Logs a formatted message string with the Debug level. (Defined by ILogExtensions.)
| DebugFormatExt(String, Object, Object, Object) | Overloaded. Logs a formatted message string with the Debug level. (Defined by ILogExtensions.)
| ErrorExt(Func TResult ) | Overloaded. (Defined by ILogExtensions.)
| ErrorExt(Object) | Overloaded. Log a message object with the Error level. (Defined by ILogExtensions.)
| ErrorExt(Func TResult , Void) | Overloaded. (Defined by ILogExtensions.)
| ErrorExt(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.)
| ErrorFormatExt(String, Object) | Overloaded. Logs a formatted message string with the Error level. (Defined by ILogExtensions.)
| ErrorFormatExt(String, Object ) | Overloaded. Logs a formatted message string with the Error level. (Defined by ILogExtensions.)
| ErrorFormatExt(IFormatProvider, String, Object ) | Overloaded. Logs a formatted message string with the Error level. (Defined by ILogExtensions.)
| ErrorFormatExt(String, Object, Object) | Overloaded. Logs a formatted message string with the Error level. (Defined by ILogExtensions.)
| ErrorFormatExt(String, Object, Object, Object) | Overloaded. Logs a formatted message string with the Error level. (Defined by ILogExtensions.)
| FatalExt(Func TResult ) | Overloaded. (Defined by ILogExtensions.)
| FatalExt(Object) | Overloaded. Log a message object with the Fatal level. (Defined by ILogExtensions.)
| FatalExt(Func TResult , Void) | Overloaded. (Defined by ILogExtensions.)
| FatalExt(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.)
| FatalFormatExt(String, Object) | Overloaded. Logs a formatted message string with the Fatal level. (Defined by ILogExtensions.)
| FatalFormatExt(String, Object ) | Overloaded. Logs a formatted message string with the Fatal level. (Defined by ILogExtensions.)
| FatalFormatExt(IFormatProvider, String, Object ) | Overloaded. Logs a formatted message string with the Fatal level. (Defined by ILogExtensions.)
| FatalFormatExt(String, Object, Object) | Overloaded. Logs a formatted message string with the Fatal level. (Defined by ILogExtensions.)
| FatalFormatExt(String, Object, Object, Object) | Overloaded. Logs a formatted message string with the Fatal level. (Defined by ILogExtensions.)
| InfoExt(Func TResult ) | Overloaded. (Defined by ILogExtensions.)
| InfoExt(Object) | Overloaded. Log a message object with the Info level. (Defined by ILogExtensions.)
| InfoExt(Func TResult , Void) | Overloaded. (Defined by ILogExtensions.)
| InfoExt(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.)
| InfoFormatExt(String, Object) | Overloaded. Logs a formatted message string with the Info level. (Defined by ILogExtensions.)
| InfoFormatExt(String, Object ) | Overloaded. Logs a formatted message string with the Info level. (Defined by ILogExtensions.)
| InfoFormatExt(IFormatProvider, String, Object ) | Overloaded. Logs a formatted message string with the Info level. (Defined by ILogExtensions.)
| InfoFormatExt(String, Object, Object) | Overloaded. Logs a formatted message string with the Info level. (Defined by ILogExtensions.)
| InfoFormatExt(String, Object, Object, Object) | Overloaded. Logs a formatted message string with the Info level. (Defined by ILogExtensions.)
| WarnExt(Func TResult ) | Overloaded. (Defined by ILogExtensions.)
| WarnExt(Object) | Overloaded. Log a message object with the Warn level. (Defined by ILogExtensions.)
| WarnExt(Func TResult , Void) | Overloaded. (Defined by ILogExtensions.)
| WarnExt(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.)
| WarnFormatExt(String, Object) | Overloaded. Logs a formatted message string with the Warn level. (Defined by ILogExtensions.)
| WarnFormatExt(String, Object ) | Overloaded. Logs a formatted message string with the Warn level. (Defined by ILogExtensions.)
| WarnFormatExt(IFormatProvider, String, Object ) | Overloaded. Logs a formatted message string with the Warn level. (Defined by ILogExtensions.)
| WarnFormatExt(String, Object, Object) | Overloaded. Logs a formatted message string with the Warn level. (Defined by ILogExtensions.)
| WarnFormatExt(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

log4net.Core Namespace