---
title: "Class LogEventArgs"
slug: "sdk--stylelabs.m.sdk.contracts.logging.logeventargs"
abstract: ""
---
# Class LogEventArgs

Event argument when an 'on log' event is fired.

## Inheritance

object

LogEventArgs

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsLogging

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class LogEventArgs : EventArgs
```

## Properties

### Exception

Gets or sets an optional exception instance that was passed to the logger through the LogError methods.

#### Declaration

```csharp
public Exception Exception { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| Exception |  |

### [LogLevel](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.logging.loglevel.html)

Gets or sets the log level of the message.

#### Declaration

```csharp
public LogLevel LogLevel { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [LogLevel](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.logging.loglevel.html) |  |

### Message

Gets or sets the message.

#### Declaration

```csharp
public string Message { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |
