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

# Android SDK: Console logs

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

The Gleap Android SDK collects console logs by default: the last 500 lines your app's process wrote to Logcat (including `System.out` / `System.err`), with errors and warnings marked as such. Further more you can make use of our [custom logs](#custom-logs), which offer more control over the logs.

> **Note:** With SDK **v19.0.0** and newer, the log levels are read correctly (older versions often showed errors as info), logs are collected on Android 5 and 6 as well, and a ticket no longer takes the custom logs away from the next one.

Long lines are cut at 1000 characters (5000 for errors) and marked `… [truncated]`.

## 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. Custom logs are still sent.

```javascript
Gleap.getInstance().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`.

```javascript
Gleap.getInstance().log("This is a test log.");
```

By default logs will be created with the severity `INFO`. Use the following method to explicitly set the severity.

```javascript
Gleap.getInstance().log("This is a test error.", GleapLogLevel.ERROR);
```

Gleap keeps the newest 500 custom logs.

## Related

- [Android SDK setup](https://docs.gleap.ai/en/articles/466-android-sdk-setup.md)
- [Android SDK: User identity](https://docs.gleap.ai/en/articles/467-android-sdk-user-identity.md)
- [Android SDK: Callbacks](https://docs.gleap.ai/en/articles/468-android-sdk-callbacks.md)
- [Android SDK: Frontend tools](https://docs.gleap.ai/en/articles/469-android-sdk-frontend-tools.md)
- [Android SDK: Forms](https://docs.gleap.ai/en/articles/470-android-sdk-forms.md)
