You’ve switched from log4j to Logback, and tweaked your logback.xml configuration for the last 30 minutes, but you can’t figure out why on earth you’re not seeing ANY log entries from Spring Framework. How the hell are you supposed to debug the 406 error you’re getting from your shiny new REST controller? Odds are you’re forgetting Spring logs over JCL, and NOT SLF4J like LOG4J did.
Just add jcl-over-slf4j to your classpath and you’re golden. If you’re using Maven to manage dependencies, this is as simple as adding this dependency to your pom.xml:
<dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> <version>1.6.4</version> </dependency>
