---
title: "Class LoggerExtensionMethods | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ExtensionMethods/LoggerExtensionMethods/"
---

# Class LoggerExtensionMethods

> **Inheritance:** `System.Object` -> LoggerExtensionMethods

###### **Namespace**: [Aurigma.DesignAtoms.ExtensionMethods](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ExtensionMethods.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public static class LoggerExtensionMethods
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Methods

### TraceExt

```csharp
public static void TraceExt(this ILogger logger, string message, string className = null, string methodName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |

### DebugExt

```csharp
public static void DebugExt(this ILogger logger, string message, string className = null, string methodName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |

### InfoExt

```csharp
public static void InfoExt(this ILogger logger, string message, string className = null, string methodName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |

### WarnExt

```csharp
public static void WarnExt(this ILogger logger, string message, string className = null, string methodName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |

### WarnExt

```csharp
public static void WarnExt(this ILogger logger, Exception exception, string message, string className = null, string methodName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `System.Exception` | *exception* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |

### ErrorExt

```csharp
public static void ErrorExt(this ILogger logger, string message, string className = null, string methodName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |

### ErrorExt

```csharp
public static void ErrorExt(this ILogger logger, Exception exception, string message, string className = null, string methodName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `System.Exception` | *exception* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |

### FatalExt

```csharp
public static void FatalExt(this ILogger logger, string message, string className = null, string methodName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |

### LogExt

```csharp
public static void LogExt(this ILogger logger, LogLevel logLevel, string message, string className = null, string methodName = null, Exception exception = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `NLog.ILogger` | *logger* |  |
| `NLog.LogLevel` | *logLevel* |  |
| `System.String` | *message* |  |
| `System.String` | *className* |  |
| `System.String` | *methodName* |  |
| `System.Exception` | *exception* |  |
