You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should explicitly state that the logger exported from @sentry/core is the SDK debug logger.
This gives us a couple of benefits:
communicates intent of the export much better
avoids collision with logger exported from other sdks (which is used for sentry structured logging)
we can move structured logging logger code into @sentry/core, reducing duplication across our sdks
We'll first have to adjust the export in @sentry/core, and then change all the sdk code accordingly. After we change all the SDK code, we can deprecate the export.
Activity
[-]Rename `logger` in `@sentry/core` to `sentryDebugLogger`[/-][+]Rename `logger` in `@sentry/core` to `debug`[/+]mydea commentedon Jul 10, 2025
while at it, we can also get rid of unused levels. Just leaving:
debugexport in@sentry/coreand switch allloggerusage in@sentry/coreto usedebug#16903debuginstead oflogger#16904loggerexport from@sentry/core#16905feat(core): Introduce `debug` to replace `logger` (#16906)
feat(core)!: Remove deprecated logger (#17061)
Renames logger getsentry/sentry-javascript#16901
chore(deps): v7: update JavaScript SDK to v10 (#5111)