Class NLogCommunicatorLogger
A communicator logger that is backed by an NLog.ILogger.
Implements
Inherited Members
Namespace: Worldline.Connect.Sdk.Logging
Assembly: Worldline.Connect.Sdk.dll
Syntax
public class NLogCommunicatorLogger : ICommunicatorLogger
Constructors
NLogCommunicatorLogger(ILogger, LogLevel, LogLevel)
Creates a new communicator logger.
Declaration
public NLogCommunicatorLogger(ILogger logger, LogLevel logLevel, LogLevel errorLogLevel)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The backing logger. |
LogLevel | logLevel | The level to use when logging through Log(string) |
LogLevel | errorLogLevel | The level to use when logging through Log(string, Exception) |
NLogCommunicatorLogger(ILogger, LogLevel)
Creates a new communicator logger.
Declaration
public NLogCommunicatorLogger(ILogger logger, LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The backing logger. |
LogLevel | level | The level to use when logging through both Log(string) abd Log(string, Exception). |
Methods
Log(string, Exception)
Logs a throwable with an accompanying message.
Declaration
public void Log(string message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message accompanying the throwable. |
Exception | exception |
Log(string)
Log the specified message.
Declaration
public void Log(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to log. |