-
Notifications
You must be signed in to change notification settings - Fork 89
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
Replace Boilerplate Logging with Quarkus Log Class #859
base: main
Are you sure you want to change the base?
Conversation
Nice catch! It looks great. However, we have other runtime classes that aren't using this approach. I tested the However, I have a doubt about this statement:
@SergioRuyDev I created this topic on Zulip asking the use of this approach on extension side. |
I do not think the savings of code (just one static log field) compensates the "risk" of this not getting processed by quarkus during build time (I guess that, in order to be usable, Quarkus process both deployment and runtime classes and this works). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not sure we should do that, but if we do, we should change all logger instances in the extension, not just this class
Thanks for the review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you and congratulations on your first contribution @SergioRuyDev.
I agree with @fjtirado on all points.
Regarding the risk of changing it, it seems easy to validate if it works in build time.
I'm more concerned about the amount of lines changed. It will be a big (in the sense of the number of lines) change.
Big changes may cause conflicts, be hard to revert, and this kind of stuff. I'm kinda reluctant to do these changes nowadays. For example, we recently had a big PR that has been causing a lot of bugs.
I'm not saying that we should not do big changes. But we should reflect on the benefits we get from them.
@SergioRuyDev do you know if we would have any other benefits besides reducing boilerplate?
It would be nice to have the opinion of @ricardozanini and @mcruzdev.
Sorry if I'm overthinking (I feel like I am). I'm not against doing this change. I just wanted to express my concerns. I'll be happy to accept if you guys think we should do it.
Our log platform is Log4j; please don't change it. What we can do in this PR is to actually revert this Jboss Logging to slf4j, which is already used by many projects and users. |
This is my first contribution to the project. I replace the boilerplate logging with Quarkus Log class, which helped me explore and better understand the project. I'm able to do it in the all project. I work with Quarkus and really like this extension. I was inspired by a Quarkus Club live session with Matheus Cruz and Helber Belmiro and want to support the project. Once I get more familiar with the codebase, I'll start tackling issues.
Here's the Quarkus Logging documentation I referenced. If anything needs adjustment, please let me know! 😊
Please make sure that your PR meets the following requirements:
[0.9.x] Subject
How to backport a pull request to a different branch?
In order to automatically create a backporting pull request please add one or more labels having the following format
backport-<branch-name>
, where<branch-name>
is the name of the branch where the pull request must be backported to (e.g.,backport-quarkus2
to backport the original PR to thequarkus2
branch).Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.
If something goes wrong, the author will be notified and at this point a manual backporting is needed.