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

# Ionic Capacitor SDK: Console logs

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

The Gleap SDK collects console logs by default: your app's `console.log`, `console.info`, `console.debug`, `console.warn` and `console.error` calls, uncaught errors and unhandled promise rejections, with the last 500 entries attached to every ticket. Further more you can make use of our [custom logs](#custom-logs), which offer more control over the logs.

> **Note:** On iOS and Android, the console of your app's WebView is collected in release builds too with SDK **v19.0.0** and newer. Older versions only got it in debug builds, where Capacitor forwards it to the native log.

## 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.

```javascript
Gleap.disableConsoleLogOverwrite();
```

## 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.log({
    message: "This is a test custom log."
});
```

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

```javascript
Gleap.log({
    message: "This is a test custom log WARNING.",
    logLevel: "WARNING"
});
```

## Related

- [Ionic Capacitor SDK setup](https://docs.gleap.ai/en/articles/563-ionic-capacitor-sdk-setup.md)
- [Ionic Capacitor SDK: User identity](https://docs.gleap.ai/en/articles/564-ionic-capacitor-sdk-user-identity.md)
- [Ionic Capacitor SDK: Frontend tools](https://docs.gleap.ai/en/articles/565-ionic-capacitor-sdk-frontend-tools.md)
- [Ionic Capacitor SDK: Track events](https://docs.gleap.ai/en/articles/566-ionic-capacitor-sdk-track-events.md)
- [Ionic Capacitor SDK: Track pages](https://docs.gleap.ai/en/articles/567-ionic-capacitor-sdk-track-pages.md)
