diff --git a/docs/platforms/react-native/configuration/options.mdx b/docs/platforms/react-native/configuration/options.mdx index c1058bba9bb60..9fbb1f28e4ba9 100644 --- a/docs/platforms/react-native/configuration/options.mdx +++ b/docs/platforms/react-native/configuration/options.mdx @@ -214,6 +214,16 @@ Allows the choice of which logs are captured: `native` for logs from native code + + +When `enableLogs` is `true`, the SDK automatically captures `console.*` calls as logs via the `ConsoleLogs` integration. Set this to `false` to disable the automatic console capture while still being able to send logs manually via `Sentry.logger.*`. + +Has no effect when `enableLogs` is `false` or `logsOrigin` is `'native'`. + +(New in version 8.14.0) + + + ## Integration Configuration For many platform SDKs integrations can be configured alongside it. On some platforms that happen as part of the `init()` call, in some others, different patterns apply. diff --git a/docs/platforms/react-native/integrations/console-logging.mdx b/docs/platforms/react-native/integrations/console-logging.mdx index 851556f2b56d7..63d4b827474d1 100644 --- a/docs/platforms/react-native/integrations/console-logging.mdx +++ b/docs/platforms/react-native/integrations/console-logging.mdx @@ -13,7 +13,18 @@ Console Logging integration is enabled by default which means calls to the `cons ## Disabling Console Logging Integration -To disable the integration, filter it out from the integrations array: +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({