<div dir="ltr"><p>I have small main program that fires up a Jetty 9 server. This server
 is able to run/deploy any war file supplied to it as a command line 
argument. </p>

<p>I construct a <em>logback-access</em> appender programmatically, give that appender to an instance of <em>ch.qos.logback.access.jetty.RequestLogImpl</em> and wrap that instance in a <em>org.eclipse.jetty.server.handler.RequestLogHandler</em> that is finally supplied  to the jetty server:</p>

<pre><code>    handlers.addHandler(webappHandler(contextPath(), warURL()));
    handlers.addHandler(requestLogHandler());
    server.setHandler(handlers);
</code></pre>

<p>Now, the web-application also uses logback, and has those artifacts in its <em>WEB_INF/lib</em>
 directory inside the war. It appears that the logback-access 
configuration in the main program and the logging performed by the 
webapp somewhat interfere with eachother. 
The symptom is that I see nothing in the request log, so I guess the 
logging configuration in the webapp "wins", and overrides the request 
log configuration in the main program. If I do not deploy a webapp, but 
instead just serve some static files, the request log works as expected,
 so I believe that my appender is constructed correctly.</p>

<p>Is there any way the logging configuration from the webapp and the request log configuration from the server can co-exist ? </p></div>