> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Console logs

The Gleap SDK can collect console logs so they are attached to feedback items. You can also make use of custom logs, which offer more control over the logs.

## Default console logs

Console-log capture is available through the platform host. In addition, you can pipe your app's logging through Gleap via the optional `Gleap.Extensions.Logging` package (`builder.Logging.AddGleap()`).

### Enable console logs in debug mode

You can enable verbose SDK debug logging by calling the following method. Make sure to call this method **before** initializing the Gleap SDK.

```csharp theme={null}
Gleap.EnableDebugConsoleLog();
```

### Disable default console logs

It is possible to disable the default collection of console logs by calling the following method prior to the initialization of Gleap.

```csharp theme={null}
Gleap.DisableConsoleLog();
```

## Custom logs

Custom logs allow you to create logs in the Gleap activity log. There are three severity types available for logs: `Error`, `Warning` and `Info`.

```csharp theme={null}
Gleap.Log("message");
```

By default logs are created with the severity `Info`. Use the following method to explicitly set the severity (`LogLevel` lives in `GleapSDK`).

```csharp theme={null}
Gleap.Log("error message", LogLevel.Error);
```
