I'm using the jetty-maven-plugin / "Jetty Maven Plugin" to start up my development server/Jetty container. I would like to integrate logback-access into this setup.<div><br></div><div>I have configured jetty-maven-plugin to load a custom jetty.xml file. In this custom jetty.xml file, I create and configure a ch.qos.logback.access.jetty.RequestLogImpl as pointed out at <a href="http://logback.qos.ch/access.html">http://logback.qos.ch/access.html</a> .</div>
<div><br></div><div>When I start-up the Jetty container using the jetty-maven-plugin (command "mvn jetty:run [...]"), the Jetty container starts up nicely, but logback-access doesn't get configured correctly:</div>
<div>~~~~Begin: log excerpt~~~~</div><div><div>22:54:38,250 |-INFO in null - Will use configuration file [logback-access.xml]</div><div>22:54:38,251 |-ERROR in null - Could not find configuration file for logback-access</div>
</div><div>~~~~End: log excerpt~~~~<br></div><div><br></div><div>The problem is: I have no idea what jetty-maven-plugin and logback-access assume as the "relative directory"/"current working directory" used for RequestLogImpl's "fileName" property and "resource" property. For instance</div>
<div>*<Set name="fileName">logback-access.xml</Set> doesn't work</div><div>*<Set name="resource">logback-access.xml</Set> doesn't work<br></div><div>*<Set name="resource">src/main/webapp/WEB-INF/logback-access.xml</Set> doesn't work</div>
<div><br></div><div>I have placed my logback-access.xml in all kinds of different locations inside my project directory hierarchy, but it never gets found by RequestLogImpl.</div><div><br></div><div>I hope you have a suggestion where I should put my logback-access.xml and how I should set the "fileName" and "resource" properties.</div>
<div>Thank you in advance!</div>