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

# .NET MAUI SDK: Console logs

Capture console logs for bug reports with the Gleap .NET MAUI 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

- [.NET MAUI SDK setup](https://docs.gleap.ai/en/articles/640-net-maui-sdk-setup.md)
- [.NET MAUI SDK: User identity](https://docs.gleap.ai/en/articles/641-net-maui-sdk-user-identity.md)
- [.NET MAUI SDK: Track events](https://docs.gleap.ai/en/articles/642-net-maui-sdk-track-events.md)
- [.NET MAUI SDK: Track pages](https://docs.gleap.ai/en/articles/643-net-maui-sdk-track-pages.md)
- [.NET MAUI SDK: Forms](https://docs.gleap.ai/en/articles/644-net-maui-sdk-forms.md)
