[logback-user] jetty-maven-plugin and logback-access

Gerrit Hübbers gerrit.huebbers at gmail.com
Sun Nov 11 23:23:50 CET 2012

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.

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
http://logback.qos.ch/access.html .

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:
~~~~Begin: log excerpt~~~~
22:54:38,250 |-INFO in null - Will use configuration file
22:54:38,251 |-ERROR in null - Could not find configuration file for
~~~~End: log excerpt~~~~

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
*<Set name="fileName">logback-access.xml</Set> doesn't work
*<Set name="resource">logback-access.xml</Set> doesn't work
*<Set name="resource">src/main/webapp/WEB-INF/logback-access.xml</Set>
doesn't work

I have placed my logback-access.xml in all kinds of different locations
inside my project directory hierarchy, but it never gets found by

I hope you have a suggestion where I should put my logback-access.xml and
how I should set the "fileName" and "resource" properties.
Thank you in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20121111/710b5d89/attachment.html>

More information about the Logback-user mailing list