Console
Capture console logs as breadcrumbs. (default)
This integration only works inside server environments (Node.js, Bun, Deno).
Import name: Sentry.consoleIntegration
This integration is enabled by default. If you'd like to modify your default integrations, read this.
The consoleIntegration
generates breadcrumbs for console logs.
Copied
Sentry.init({
integrations: [Sentry.consoleIntegration()],
});
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").