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

# Windows Desktop SDK: Console logs

Capture console logs for bug reports with the Gleap Windows Desktop 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

- [Windows Desktop SDK setup](https://docs.gleap.ai/en/articles/616-windows-desktop-sdk-setup.md)
- [Windows Desktop SDK: User identity](https://docs.gleap.ai/en/articles/617-windows-desktop-sdk-user-identity.md)
- [Windows Desktop SDK: Track events](https://docs.gleap.ai/en/articles/618-windows-desktop-sdk-track-events.md)
- [Windows Desktop SDK: Track pages](https://docs.gleap.ai/en/articles/619-windows-desktop-sdk-track-pages.md)
- [Windows Desktop SDK: Forms](https://docs.gleap.ai/en/articles/620-windows-desktop-sdk-forms.md)
