This can be due to the fact that logback cannot find config file in classpath. I've just make a test, renaming logback.xml
into _logback.xml
. It logs everything!
Check that logback.xml
file is in your classpath and that is named correctly.
You can put it into META-INF
for example (this is my case).
I have found also this sequence:
- Logback tries to find a file called logback.groovy in the classpath.
- If no such file is found, logback tries to find a file called logback-test.xml in the classpath.
- If no such file is found, it checks for the file logback.xml in the classpath..
- If neither file is found, logback configures itself automatically using the BasicConfigurator which will cause logging output to be directed to the console.
hope this helps!