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

# Cordova SDK: Console logs

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

The Gleap SDK collects console logs by default. Further more you can make use of our [custom logs](#custom-logs), which offer more control over the logs.

## Custom logs

Custom logs allow you to create logs in the Gleap activity log. There are three severnity types available for logs: `ERROR`, `WARNING` and `INFO`.

```js
cordova.plugins.GleapPlugin.log("This is a test custom log.");
```

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

```js
cordova.plugins.GleapPlugin.log(
  "This is a test custom log WARNING.",
  "WARNING"
);
```

## Related

- [Cordova SDK setup](https://docs.gleap.ai/en/articles/595-cordova-sdk-setup.md)
- [Cordova SDK: User identity](https://docs.gleap.ai/en/articles/596-cordova-sdk-user-identity.md)
- [Cordova SDK: Track events](https://docs.gleap.ai/en/articles/597-cordova-sdk-track-events.md)
- [Cordova SDK: Track pages](https://docs.gleap.ai/en/articles/598-cordova-sdk-track-pages.md)
- [Cordova SDK: Forms](https://docs.gleap.ai/en/articles/599-cordova-sdk-forms.md)
