Class IgniteNLogLogger
Ignite NLog integration.
Inheritance
System.Object
IgniteNLogLogger
Implements
Namespace: Apache.Ignite.NLog
Assembly: Apache.Ignite.NLog.dll
Syntax
public class IgniteNLogLogger : object, ILogger
Constructors
IgniteNLogLogger()
Initializes a new instance of the Ignite
Declaration
public IgniteNLogLogger()
IgniteNLogLogger(Logger)
Initializes a new instance of the Ignite
Declaration
public IgniteNLogLogger(Logger logger)
Parameters
Type | Name | Description |
---|---|---|
Logger | logger | The NLog logger instance. |
Methods
ConvertLogLevel(LogLevel)
Converts the Ignite LogLevel to the NLog log level.
Declaration
public static NLog.LogLevel ConvertLogLevel(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
Log |
level | The Ignite log level. |
Returns
Type | Description |
---|---|
NLog. |
Corresponding NLog log level. |
IsEnabled(LogLevel)
Determines whether the specified log level is enabled.
Declaration
public bool IsEnabled(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
Log |
level | The level. |
Returns
Type | Description |
---|---|
System. |
Value indicating whether the specified log level is enabled |
Log(LogLevel, String, Object[], IFormatProvider, String, String, Exception)
Logs the specified message.
Declaration
public void Log(LogLevel level, string message, object[] args, IFormatProvider formatProvider, string category, string nativeErrorInfo, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
Log |
level | The level. |
System. |
message | The message. |
System. |
args | The arguments to format |
IFormat |
formatProvider | The format provider. Can be null if |
System. |
category | The logging category name. |
System. |
nativeErrorInfo | The native error information. |
Exception | ex | The exception. Can be null. |