Class Log4NetLogger
A log4net logger.
Inheritance
System.Object
Log4NetLogger
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Logging.Log4Net
Assembly: Kephas.Logging.Log4Net.dll
Syntax
public class Log4NetLogger : ILogger
Constructors
| Improve this Doc View SourceLog4NetLogger(ILog)
Initializes a new instance of the Log4NetLogger class.
Declaration
protected Log4NetLogger(ILog logger)
Parameters
Type | Name | Description |
---|---|---|
log4net.ILog | logger | The NLog logger. |
Methods
| Improve this Doc View SourceIsEnabled(LogLevel)
Indicates whether logging at the indicated level is enabled.
Declaration
public bool IsEnabled(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The logging level. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Log(LogLevel, Exception, String, Object[])
Logs the information at the provided level.
Declaration
public void Log(LogLevel level, Exception exception, string messageFormat, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The logging level. |
System.Exception | exception | The exception. |
System.String | messageFormat | The message format. |
System.Object[] | args | A variable-length parameters list containing arguments. |
Log(LogLevel, String, Object[])
Logs the information at the provided level.
Declaration
public void Log(LogLevel level, string messageFormat, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The logging level. |
System.String | messageFormat | The message format. |
System.Object[] | args | The arguments. |