geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.
http://geoserver.org/geoserver-cloud
Other
246 stars 74 forks source link

Change GeoTools log redirection from Log4j2 to Logback #369

Closed groldan closed 10 months ago

groldan commented 10 months ago

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.