Skip to content

feat(core): Deprecate logger in favor of debug #17040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 16, 2025

Conversation

AbhiPrasad
Copy link
Member

resolves #16905

also renames the file to be debug-logger.ts instead of logger.ts to make usage inside @sentry/core a little easier to understand.

Added a note to MIGRATION.md, but let me know if I should remove that.

@AbhiPrasad AbhiPrasad requested review from andreiborza and a team July 16, 2025 13:19
@AbhiPrasad AbhiPrasad self-assigned this Jul 16, 2025
@AbhiPrasad AbhiPrasad requested review from mydea and removed request for a team July 16, 2025 13:19
MIGRATION.md Outdated

## Deprecated `@sentry/core` SDK internal `logger` export

The `logger` export from `@sentry/core` has been deprecated in favor of the `debug` export. `debug` only exposes `log`, `warn`, and `error` methods but is otherwise identical to `logger`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we mention that this is about the internal logger and unrelated to the Logs product?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah good call, done with 4064ff1

AbhiPrasad and others added 4 commits July 16, 2025 09:30
Co-authored-by: Francesco Gringl-Novy <francesco.novy@sentry.io>
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Jul 16, 2025

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 23.78 kB - -
@sentry/browser - with treeshaking flags 22.34 kB - -
@sentry/browser (incl. Tracing) 39.66 kB - -
@sentry/browser (incl. Tracing, Replay) 77.79 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.59 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 82.49 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 94.59 kB - -
@sentry/browser (incl. Feedback) 40.48 kB - -
@sentry/browser (incl. sendFeedback) 28.46 kB - -
@sentry/browser (incl. FeedbackAsync) 33.36 kB - -
@sentry/react 25.54 kB - -
@sentry/react (incl. Tracing) 41.62 kB - -
@sentry/vue 28.23 kB - -
@sentry/vue (incl. Tracing) 41.45 kB - -
@sentry/svelte 23.81 kB - -
CDN Bundle 25.18 kB - -
CDN Bundle (incl. Tracing) 39.42 kB - -
CDN Bundle (incl. Tracing, Replay) 75.42 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 80.89 kB - -
CDN Bundle - uncompressed 73.44 kB - -
CDN Bundle (incl. Tracing) - uncompressed 116.86 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 231 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 243.81 kB - -
@sentry/nextjs (client) 43.66 kB -0.08% -34 B 🔽
@sentry/sveltekit (client) 40.08 kB - -
@sentry/node 167.81 kB - -
@sentry/node - without tracing 100.2 kB - -
@sentry/aws-serverless 128.36 kB -0.01% -1 B 🔽

View base workflow run

@AbhiPrasad AbhiPrasad merged commit 1b41126 into develop Jul 16, 2025
169 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-deprecate-logger branch July 16, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate logger export from @sentry/core
2 participants