Skip to content

Send JUL logs to Sentry as logs #4518

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Send JUL logs to Sentry as logs #4518

wants to merge 5 commits into from

Conversation

adinauer
Copy link
Member

📜 Description

Allow setting a minimumLevel for our JUL integration which causes logs >= that level to be sent to Sentry as logs.

Setting the minimum level can be done on the handler config in logging.properties:

io.sentry.jul.SentryHandler.minimumLevel=CONFIG

You also have to enable the logs feature:

Either in sentry.properties:

logs.enabled=true

or when calling Sentry.init:

Sentry.init(options -> {
  ...
  options.getLogs().setEnabled(true);
});

💡 Motivation and Context

Closes #4405

💚 How did you test it?

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

Copy link
Contributor

github-actions bot commented Jun 25, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 4248bed

Copy link
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 449.77 ms 522.35 ms 72.58 ms
Size 1.58 MiB 2.09 MiB 519.08 KiB

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.

Integration for Sentry Logs through JUL
2 participants