- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Change logging framework to Logback and provide autoconfiguration #1783
base: main
Are you sure you want to change the base?
Change logging framework to Logback and provide autoconfiguration #1783
Conversation
+ introduce module deegree-core-logging-autoconfigure
…cit other configuration was found * configure autoconfiguration with different properties for test environment
- remove now obsolete logback/logging excludes
I tested the PR locally and can confirm the described functionality. If no logging configuration is set at startup, the autoconfiguration is applied. Once a Nevertheless, |
As discussed in todays tmc meeting this log4j.properties file has to be removed in this PR as well https://github.com/gritGmbH/deegree3/blob/b8d6ceb3f28f6e40b476d420a7a35ac3e25dccaf/deegree-services/deegree-webservices/src/main/resources/log4j2.properties |
Change the logging framework from log4j2 to Logback by providing a deegree module that provides configurators for Logback.
This is done by registering a java style deegree default configurator class beside the regular Logback file-based configurator.
So if no Logback configuration was added to the war or configured with a system parameter or environment variable, the deegree auto configurator kicks in and configures console- and file-logging as well as the levels.
This is not yet finished, as the documentation is work in progress and the default settings are not final yet.
TODO:
fixes #1248
closes #1705
References: