datastax / java-driver-policies

A collection of extra policies for the Apache Cassandra Java Driver.
Apache License 2.0
0 stars 1 forks source link

logback-test.xml causes logging problem with SpringBoot 2.7 applications. #4

Open jclu123 opened 3 weeks ago

jclu123 commented 3 weeks ago

From a development-team:

While implementing the changes to enable the busy node avoidance we found an issue with the jar. The logback-test.xml file is packaged with the Datastax java-driver-policies jar. When starting up the Spring Boot 2.7 application the logback-spring.xml on the classpath is ignored and logback-test.xml is used. The effect is that we loose ALL logging (Splunk, Disk etc).

Perhaps you can inform the engineers on your end to remove that file for other customers. I do not see a reason why the logback-test.xml should be there, perhaps an oversight.

jclu123 commented 3 weeks ago

Their work-around fix was setting the logging.config property to the classpath. So in this case -Dlogging.config=classpath:logback-spring.xml is put on the command line