-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Bugsnag logging #19308
Comments
Note that you can also use the Quarkiverse logback support to use the logback appender: https://docs.bugsnag.com/platforms/java/other/configuring-logback/ |
That's correct. Although at the moment Bugsnag does not know how to attach JAX-RS request data to the report. |
@stuartwdouglas I started looking into the Logback extension. How would you inject bugsnag api key without committing it into repository? logback.xml
|
You should be able to use |
@stuartwdouglas Sorry for late reply. Logback extension + BugsnagAppender works as expected. Closing the issue. Edit: Works as expected with some additional reflection configuration* |
Description
A Quarkus Extension to send (error) logs to a Bugsnag Error Monitoring.
Bugsnag homepage
There is an official extension for sentry (https://quarkus.io/guides/logging-sentry) but it is not the only popular error monitoring tool out there. I (and hopefully many others) would benefit from supporting Bugsnag as well.
In fact I have already implemented and used this extension in production for about two weeks now, and figured I might as well help make it available for others. It's separated in a repository -> https://github.com/krisgerhard/logging-bugsnag.
Couple of remarks about the implementation.
Interested in this extension, please +1 via the emoji/reaction feature of GitHub (top right).
Configuration suggestion
https://docs.bugsnag.com/platforms/java/other/configuration-options/
quarkus.log.bugsnag.enable=true
quarkus.log.bugsnag.api-key=YOUR_API_KEY
quarkus.log.bugsnag.minimum-event-level=WARN
quarkus.log.bugsnag.filters=password, credit_card_number
quarkus.log.bugsnag.ignored-classes=java.io.IOException, com.example.Custom
quarkus.log.bugsnag.notify-release-stage=production, development
quarkus.log.bugsnag.project-packages=com.company.package1, com.company.package2
quarkus.log.bugsnag.release-stage=development
quarkus.log.bugsnag.send-threads=false
quarkus.log.bugsnag.timeout=5000
The text was updated successfully, but these errors were encountered: