-
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
Explain @ConfigGroup and @ConfigRoot in more details #2589
Conversation
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.
Looks mostly OK with a couple small issues.
|
@sarxos could you take our comments into account and push an update? Thanks! |
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.
I added a couple of minor comments.
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.
I added a few comments. Could you check them out?
core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java
Outdated
Show resolved
Hide resolved
@gsmet I addressed some of your comments but I would like to discuss the remaining one. For a readability sake I would like to avoid having any mention of |
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.
I added a couple more comments. Once you are done with them, I think it will be OK.
Could you squash everything in one commit at the end?
Thanks!
core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java
Outdated
Show resolved
Hide resolved
@gsmet I replaced |
Waiting for CI. |
To quote @gsmet:
And round and round we go. Using logging for the example was clearly a mistake! |
Can we just leave it as it is now? In its current form it's sufficient to serve as an example, IMO. |
@sarxos yes we keep it, the idea of using log was taken a long time ago. |
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.
I have no opinion one way or another about the change.
Hi @cescoffier, What should I do with this pull request? Are we merging it or shall I close it as unnecessary? IMO it should be merged since existing example in its current form, together with related explanation, is really confusing. The changes I did are to clarify it, at least a little bit. |
Address code review comments in regards to log file name
Commits are now squashed. |
I think we are good to go. This PR clearly shows an issue with our example (log) and we may need to come with something different - less controversial as an example. |
Hello.
This commit is in regards to our discussion on Zulip. See https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Extensions for more details.
My concern was in regards to the following statement from the "2.4.6. Configuration Example" in Extensions tutorial here https://quarkus.io/guides/extension-authors-guide.
Where the code sample looks like this:
And where point 2 states:
But where is this indication? How this class is linked to
quarkus.log.*
? Is there some declaration missing?This PR is to (hopefully) make this paragraph more clear and to document details you guys provided to me in the Zulip chat, since these details are not explained anywhere else.