Search Results for

Show / Hide Table of Contents

# Class IgniteLog4NetLogger

Ignite log4net integration.

##### Inheritance

System.Object
IgniteLog4NetLogger

##### Implements

ILogger

###### Namespace: Apache.Ignite.Log4Net

###### Assembly: Apache.Ignite.Log4Net.dll

##### Syntax

    public class IgniteLog4NetLogger : object, ILogger

### Constructors

#### IgniteLog4NetLogger()

Initializes a new instance of the IgniteLog4NetLogger class.

##### Declaration

    public IgniteLog4NetLogger()

#### IgniteLog4NetLogger(ILog)

Initializes a new instance of the IgniteLog4NetLogger class.

##### Declaration

    public IgniteLog4NetLogger(ILog log)

##### Parameters

Type | Name | Description
--- | --- | ---
ILog | log | The log.

### Methods

#### ConvertLogLevel(LogLevel)

Converts the Ignite LogLevel to the log4net log level.

##### Declaration

    public static Level ConvertLogLevel(LogLevel level)

##### Parameters

Type | Name | Description
--- | --- | ---
LogLevel | level | The Ignite log level.

##### Returns

Type | Description
--- | ---
Level | Corresponding log4net log level.

#### IsEnabled(LogLevel)

Determines whether the specified log level is enabled.

##### Declaration

    public bool IsEnabled(LogLevel level)

##### Parameters

Type | Name | Description
--- | --- | ---
LogLevel | level | The level.

##### Returns

Type | Description
--- | ---
System.Boolean | 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
--- | --- | ---
LogLevel | level | The level.
System.String | message | The message.
System.Object[] | args | The arguments to format `message`. Can be null (formatting will not occur).
IFormatProvider | formatProvider | The format provider. Can be null if `args` is null.
System.String | category | The logging category name.
System.String | nativeErrorInfo | The native error information.
Exception | ex | The exception. Can be null.

### Implements

ILogger