Where to put the logback.xml file in Tomcat when we want to have it configurable?
And how to make it accessible for the Java application(s) running inside?
Where to put the logback.xml file in Tomcat when we want to have it configurable?
And how to make it accessible for the Java application(s) running inside?
You typically want to have
logback.xml
on the classpath. Per the Logback FAQ:You therefore need to put it in:
Logback has some conventions for where it looks for it. Those are documented here.
But you can also tell it where to find the file.