Class NLogWrapper
Implements
Inherited Members
Namespace: FixAntenna.Common.Logging
Assembly: FixAntenna.Common.dll
Syntax
public class NLogWrapper : BaseLog, ILog
Constructors
NLogWrapper(ILogger)
Declaration
public NLogWrapper(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger |
Properties
IsDebugEnabled
Check whether this category is enabled for the DEBUG Level.
Declaration
public bool IsDebugEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsErrorEnabled
Check whether this category is enabled for the ERROR Level.
Declaration
public bool IsErrorEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsFatalEnabled
Check whether this category is enabled for the FATAL Level.
Declaration
public bool IsFatalEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInfoEnabled
Check whether this category is enabled for the INFO Level.
Declaration
public bool IsInfoEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsTraceEnabled
Check whether this category is enabled for the TRACE Level.
Declaration
public bool IsTraceEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsWarnEnabled
Check whether this category is enabled for the WARN Level.
Declaration
public bool IsWarnEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Debug(Object)
Log a message object with the DEBUG level.
Declaration
public void Debug(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Debug(Object, Exception)
Log a message object with the DEBUG level including the stack trace of the Throwable.
Declaration
public void Debug(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |
Error(Object)
Log a message object with the ERROR level.
Declaration
public void Error(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Error(Object, Exception)
Log a message object with the DEBUG level including the stack trace of the Throwable.
Declaration
public void Error(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |
Fatal(Object)
Log a message object with the FATAL level.
Declaration
public void Fatal(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Fatal(Object, Exception)
Log a message object with the FATAL level including the stack trace of the Throwable.
Declaration
public void Fatal(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |
Info(Object)
Log a message object with the INFO level.
Declaration
public void Info(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Info(Object, Exception)
Log a message object with the INFO level including the stack trace of the Throwable.
Declaration
public void Info(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |
Trace(Object)
Log a message object with the TRACE level.
Declaration
public void Trace(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Trace(Object, Exception)
Log a message object with the trace level including the stack trace of the Throwable.
Declaration
public void Trace(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |
Warn(Object)
Log a message object with the WARN level.
Declaration
public void Warn(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Warn(Object, Exception)
Log a message object with the WARN level including the stack trace of the Throwable.
Declaration
public void Warn(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |