---
title: "Unity SDK: Console logs"
description: "Capture console logs for bug reports with the Gleap Unity SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/670-unity-sdk-console-logs
collection: "Unity (Beta)"
updated: 2026-11-01
language: en
---

# Unity SDK: Console logs

Capture console logs for bug reports with the Gleap Unity SDK. Follow the integration code examples.

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
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
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
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
Gleap.Log("error message", LogLevel.Error);
```

## Related

- [Unity SDK setup](https://docs.gleap.ai/en/articles/664-unity-sdk-setup.md)
- [Unity SDK: User identity](https://docs.gleap.ai/en/articles/665-unity-sdk-user-identity.md)
- [Unity SDK: Track events](https://docs.gleap.ai/en/articles/666-unity-sdk-track-events.md)
- [Unity SDK: Track pages](https://docs.gleap.ai/en/articles/667-unity-sdk-track-pages.md)
- [Unity SDK: Forms](https://docs.gleap.ai/en/articles/668-unity-sdk-forms.md)
