I also had the same problem, but I could not disable jndi because my application uses it at startup. Therefore, after some research, I got a solution:
1) rename logback-spring.xml to another name, for example logback-config.xml
2) put the logging.config property in the application.properties file.
As a result, your configuration will only be applied when spring starts, and this debugging logging will be skipped. Also in my case, the first solution did not work, because I need jndi, in this case you also leave jndi turned on.
Update:, it helped only for the local environment, to do the same work with the remote tomcat and remove this debug log from the catalina.log file, in the end I renamed this log file to the logback.xml file, so it was found at startup, before looking for jndi.
Ruslan Akhundov
source share