Search Results for

Show / Hide Table of Contents

# Class LoggerExtensions

Extension methods for ILogger

##### Inheritance

System.Object
LoggerExtensions

###### Namespace: Apache.Ignite.Core.Log

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public static class LoggerExtensions : object

### Methods

#### Debug(ILogger, Exception, String)

Logs the message with Debug level.

##### Declaration

    public static void Debug(this ILogger logger, Exception ex, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.

#### Debug(ILogger, Exception, String, Object[])

Logs the message with Debug level.

##### Declaration

    public static void Debug(this ILogger logger, Exception ex, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Debug(ILogger, String)

Logs the message with Debug level.

##### Declaration

    public static void Debug(this ILogger logger, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.

#### Debug(ILogger, String, Object[])

Logs the message with Debug level.

##### Declaration

    public static void Debug(this ILogger logger, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Error(ILogger, Exception, String)

Logs the message with Error level.

##### Declaration

    public static void Error(this ILogger logger, Exception ex, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.

#### Error(ILogger, Exception, String, Object[])

Logs the message with Error level.

##### Declaration

    public static void Error(this ILogger logger, Exception ex, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Error(ILogger, String)

Logs the message with Error level.

##### Declaration

    public static void Error(this ILogger logger, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.

#### Error(ILogger, String, Object[])

Logs the message with Error level.

##### Declaration

    public static void Error(this ILogger logger, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.
System.Object[] | args | The arguments.

#### GetLogger(ILogger, String)

Gets the CategoryLogger with a specified category that wraps provided logger.

##### Declaration

    public static ILogger GetLogger(this ILogger logger, string category)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | category | The category.

##### Returns

Type | Description
--- | ---
ILogger | Logger that uses specified category when no other category is provided.

#### GetLogger(ILogger, Type)

Gets the CategoryLogger with a specified category that wraps provided logger.

##### Declaration

    public static ILogger GetLogger(this ILogger logger, Type category)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Type | category | The category as a type.

##### Returns

Type | Description
--- | ---
ILogger | Logger that uses specified category when no other category is provided.

#### Info(ILogger, Exception, String)

Logs the message with Info level.

##### Declaration

    public static void Info(this ILogger logger, Exception ex, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.

#### Info(ILogger, Exception, String, Object[])

Logs the message with Info level.

##### Declaration

    public static void Info(this ILogger logger, Exception ex, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Info(ILogger, String)

Logs the message with Info level.

##### Declaration

    public static void Info(this ILogger logger, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.

#### Info(ILogger, String, Object[])

Logs the message with Info level.

##### Declaration

    public static void Info(this ILogger logger, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Log(ILogger, LogLevel, Exception, String)

Logs the message.

##### Declaration

    public static void Log(this ILogger logger, LogLevel level, Exception ex, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
LogLevel | level | The level.
Exception | ex | The exception.
System.String | message | The message.

#### Log(ILogger, LogLevel, Exception, String, Object[])

Logs the message.

##### Declaration

    public static void Log(this ILogger logger, LogLevel level, Exception ex, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
LogLevel | level | The level.
Exception | ex | The exception.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Log(ILogger, LogLevel, String)

Logs the message.

##### Declaration

    public static void Log(this ILogger logger, LogLevel level, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
LogLevel | level | The level.
System.String | message | The message.

#### Log(ILogger, LogLevel, String, Object[])

Logs the message.

##### Declaration

    public static void Log(this ILogger logger, LogLevel level, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
LogLevel | level | The level.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Trace(ILogger, Exception, String)

Logs the message with Trace level.

##### Declaration

    public static void Trace(this ILogger logger, Exception ex, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.

#### Trace(ILogger, Exception, String, Object[])

Logs the message with Trace level.

##### Declaration

    public static void Trace(this ILogger logger, Exception ex, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Trace(ILogger, String)

Logs the message with Trace level.

##### Declaration

    public static void Trace(this ILogger logger, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.

#### Trace(ILogger, String, Object[])

Logs the message with Trace level.

##### Declaration

    public static void Trace(this ILogger logger, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Warn(ILogger, Exception, String)

Logs the message with Warn level.

##### Declaration

    public static void Warn(this ILogger logger, Exception ex, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.

#### Warn(ILogger, Exception, String, Object[])

Logs the message with Warn level.

##### Declaration

    public static void Warn(this ILogger logger, Exception ex, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
Exception | ex | The exception.
System.String | message | The message.
System.Object[] | args | The arguments.

#### Warn(ILogger, String)

Logs the message with Warn level.

##### Declaration

    public static void Warn(this ILogger logger, string message)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.

#### Warn(ILogger, String, Object[])

Logs the message with Warn level.

##### Declaration

    public static void Warn(this ILogger logger, string message, params object[] args)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | The logger.
System.String | message | The message.
System.Object[] | args | The arguments.