File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
docs/platforms/javascript/guides/electron
platform-includes/logs/setup Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ Sentry.init({
5656 dsn: " ___PUBLIC_DSN___" ,
5757 // ___PRODUCT_OPTION_START___ logs
5858 // Enable logs to be sent to Sentry
59- _experiments : { enableLogs: true } ,
59+ enableLogs: true ,
6060 // ___PRODUCT_OPTION_END___ logs
6161});
6262```
@@ -107,7 +107,20 @@ Sentry.init({
107107 // ___PRODUCT_OPTION_START___ logs
108108
109109 // Enable logs to be sent to Sentry
110- _experiments: { enableLogs: true },
110+ enableLogs: true ,
111+ // ___PRODUCT_OPTION_END___ logs
112+ });
113+ ```
114+
115+ ### Configure any Utility Processes
116+
117+ ``` javascript
118+ import * as Sentry from " @sentry/electron/utility" ;
119+
120+ Sentry .init ({
121+ // ___PRODUCT_OPTION_START___ logs
122+ // Enable logs to be sent to Sentry
123+ enableLogs: true ,
111124 // ___PRODUCT_OPTION_END___ logs
112125});
113126```
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import * as Sentry from "@sentry/electron/main";
88Sentry .init ({
99 dsn: " ___PUBLIC_DSN___" ,
1010 // Enable logs to be sent to Sentry
11- _experiments : { enableLogs: true } ,
11+ enableLogs: true ,
1212});
1313```
1414
@@ -20,6 +20,6 @@ import * as Sentry from "@sentry/electron/renderer";
2020Sentry .init ({
2121 dsn: " ___PUBLIC_DSN___" ,
2222 // Enable logs to be sent to Sentry
23- _experiments : { enableLogs: true } ,
23+ enableLogs: true ,
2424});
2525```
You can’t perform that action at this time.
0 commit comments