---
title: "Console logging"
description: "Capture console API calls as Sentry logs in React Native."
url: https://docs.sentry.io/platforms/react-native/integrations/console-logging/
last_updated: 2026-06-30T08:22:32.000Z
---

# Console logging for React Native

##### Sentry Logs

Enable the Sentry Logs feature with `enableLogs: true` in your `Sentry.init` call to unlock Sentry's full logging power. With Sentry Logs, you can search, filter, and analyze logs from across your entire application in one place.

Console Logging integration is enabled by default which means calls to the `console` API will be captured as logs in Sentry. By default the integration instruments `console.debug`, `console.info`, `console.warn`, `console.error`, `console.log`, `console.trace`, and `console.assert`.

## [Disabling Console Logging Integration](https://docs.sentry.io/platforms/react-native/integrations/console-logging.md#disabling-console-logging-integration)

Since version 8.14.0, you can disable the integration with the `enableAutoConsoleLogs` option. `Sentry.logger.*` calls still work as expected:

```js
Sentry.init({
  ...,
  enableLogs: true,
  enableAutoConsoleLogs: false,
  ...
})
```

On earlier versions, filter the integration out of the integrations array:

```js
Sentry.init({
  ...,
  integrations(integrations) {
    return integrations.filter(i => i.name !== 'ConsoleLogs');
  },
  ...
})
```

You can also filter out the automatically captured logs in `beforeSendLog`:

```js
Sentry.init({
  ...,
  beforeSendLog: (log) => {
    if (log.attributes?.['sentry.origin'] === 'auto.log.console') {
      return null;
    }
    return log;
  },
  ...
})
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
