Reputation: 252
I have a (Maven) multi module Spring Boot application running in Tomcat 9. Logback is configured with external logback.xml.
For some reason Logback is only logging from the the "main module" where the Spring application is. This main module is actually the also the module which is packaged as WAR which contains the rest of the modules.
I can see all the logged lines in the tomcat9-stdout.log but not in the log file defined in the logback configuration. Only the main module's log lines are showing up there.
What could be the reason for this kind of behaviour?
Upvotes: 1
Views: 1223
Reputation: 14951
I have seen weirdness like this when both commons-logging and jcl-over-slf4j are on the classpath together. Excluding commons-logging from the classpath often helps.
Upvotes: 1