Skip to content
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 GeoTools log redirection from Log4j2 to Logback #369

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

groldan
Copy link
Member

@groldan groldan commented Nov 9, 2023

GeoTools version of Log4j2 (2.17.2) and the one used by spring-boot (2.21.1) differ in the API used by GeoTools to set the logging level, which produces an exception due to a missing setLevel(...) method in the new version.

Change log redirection to use Logback, and make sure the ApplicationContextInitializers run only once, as they may be called twice, once for the webapp context, and again for the Actuator context.

GeoTools version of Log4j2 (2.17.2) and the one used by spring-boot
(2.21.1) differ in the  API used by GeoTools to set the logging level,
which produces an exception due to a missing setLevel(...) method in the
new version.

Change log redirection to use Logback, and make sure the
ApplicationContextInitializers run only once, as they may be called
twice, once for the webapp context, and again for the Actuator context.
@groldan groldan added the bug Something isn't working label Nov 9, 2023
@groldan groldan merged commit 22a2ba0 into geoserver:main Nov 11, 2023
1 check passed
@groldan groldan deleted the bug/gt_log4j2_redirect branch November 11, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant