Implementation of ILog wrapper interface.
Inheritance Hierarchy
log4net.CoreLoggerWrapperImpl
log4net.CoreLogImpl
Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax
The LogImpl type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| LogImpl |
Construct a new wrapper for the specified logger.
|
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.) |
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 | (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 | (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.
|
Extension Methods
| Name | Description | |
|---|---|---|
| DebugExt(FuncTResult) | Overloaded. (Defined by ILogExtensions.) | |
| DebugExt(Object) | Overloaded.
Log a message object with the Debug level.
(Defined by ILogExtensions.) | |
| DebugExt(FuncTResult, 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(FuncTResult) | Overloaded. (Defined by ILogExtensions.) | |
| ErrorExt(Object) | Overloaded.
Log a message object with the Error level.
(Defined by ILogExtensions.) | |
| ErrorExt(FuncTResult, 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(FuncTResult) | Overloaded. (Defined by ILogExtensions.) | |
| FatalExt(Object) | Overloaded.
Log a message object with the Fatal level.
(Defined by ILogExtensions.) | |
| FatalExt(FuncTResult, 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(FuncTResult) | Overloaded. (Defined by ILogExtensions.) | |
| InfoExt(Object) | Overloaded.
Log a message object with the Info level.
(Defined by ILogExtensions.) | |
| InfoExt(FuncTResult, 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(FuncTResult) | Overloaded. (Defined by ILogExtensions.) | |
| WarnExt(Object) | Overloaded.
Log a message object with the Warn level.
(Defined by ILogExtensions.) | |
| WarnExt(FuncTResult, 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.) |
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:
The values for these levels and their semantic meanings can be changed by configuring the LevelMap for the repository.
See Also