Advanced
Logs
Learn how to set up capture for console/application logs.
⏱ Estimated Time To Completion: 2 minutes
Add captureConsoleIntegration
to your initialization
To automatically begin capturing console API calls, simply add Sentry.captureConsoleIntegration
to your
existing Sentry.init
call.
sentry.client.config.ts
You may pass a levels
arg to captureConsoleIntegration
in order to customize log levels that are captured.
sentry.client.config.ts
That’s it! Decipher will automatically capture the configured logs and include them in session replays.