Skip to content

Commit 8e29edf

Browse files
Feat(Logs): Add Console logs from JavaScript (#5261)
* support for console log * changelog --------- Co-authored-by: Antonis Lilis <[email protected]>
1 parent d1fd647 commit 8e29edf

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- Adds Console logs as Sentry Logs. ([#5261](https://github.com/getsentry/sentry-react-native/pull/5261))
1314
- Adds support for `propagateTraceparent` ([#5277](https://github.com/getsentry/sentry-react-native/pull/5227))
1415

1516
### Fixes
0 Bytes
Binary file not shown.

packages/core/src/js/integrations/default.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable complexity */
2-
import { browserSessionIntegration } from '@sentry/browser';
2+
import { browserSessionIntegration, consoleLoggingIntegration } from '@sentry/browser';
33
import type { Integration } from '@sentry/core';
44
import type { ReactNativeClientOptions } from '../options';
55
import { reactNativeTracingIntegration } from '../tracing';
@@ -87,6 +87,7 @@ export function getDefaultIntegrations(options: ReactNativeClientOptions): Integ
8787
integrations.push(modulesLoaderIntegration());
8888
if (options.enableLogs) {
8989
integrations.push(logEnricherIntegration());
90+
integrations.push(consoleLoggingIntegration());
9091
}
9192
if (options.attachScreenshot) {
9293
integrations.push(screenshotIntegration());

0 commit comments

Comments
 (0)