-
Notifications
You must be signed in to change notification settings - Fork 465
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
[WFCORE-6548] Unify test logging in elytron module #5705
Conversation
@@ -7,7 +7,7 @@ | |||
loggers=org.wildfly.extension.elytron,org.apache.directory,net.sf.ehcache,org.apache.directory.api.ldap,javax.security.sasl,org.wildfly.security,org.wildfly.security.sasl,org.wildfly.security.xml,org.wildfly.security.tls | |||
|
|||
# Root logger configuration | |||
logger.level=${test.level:TRACE} | |||
logger.level=INFO |
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.
Maybe the Elytron team is used to using this config -Dtest.level
@OndrejKotek is there any reason for not using logger.level=${test.level:INFO}
instead?
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 taken other similar logging configurations into account and tried to find the best solution. I think the maximum levels of the most important loggers are set below and the logging level for Elytron tests is handled through handler.CONSOLE.level=${test.level:INFO}
.
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.
@OndrejKotek Thanks for the explanation. This seems ok then. @yersan WDYT?
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.
Thanks for reviewing @fjuma. I am fine with this too then.
The change here is now only the loggers declared in the loggers
configuration will be taken into account by the CONSOLE
handler when the level changes to something different than INFO
. The root logger will be always INFO
. That's more clear handling since it takes into account only the loggers you want for your tests avoiding the root logger.
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.
Threads and installation-manager could use the same approach, that's a different Jira, I will create one
Thanks @fjuma @OndrejKotek |
https://issues.redhat.com/browse/WFCORE-6548