Hi,<br>I'm a bit confused about logback-access usage...<br>I'm using Tomcat 6.0.29 and logback 0.9.26, i've followed instructions <a href="http://logback.qos.ch/access.html">http://logback.qos.ch/access.html</a> to get HTTP logs...however all i got is just logback status messages<br>
1) Do i need to put a logback-access.xml in my servlet ? (for now it's just in tomcat/conf/ )<br>2) How should i configure logback so that my servlet logs will show in the logback servlet ?<br><br>my logback-access.xml :<br>
<pre class="prettyprint source"><span class="tag"><configuration></span><span class="pln"><br> </span><span class="com"><!-- always a good activate OnConsoleStatusListener --></span><span class="pln"><br> </span><span class="tag"><statusListener</span><span class="pln"> </span><span class="atn">class</span><span class="pun">=</span><span class="atv">"ch.qos.logback.core.status.OnConsoleStatusListener"</span><span class="pln"> </span><span class="tag">/></span><span class="pln"> <br>
<br> </span><span class="tag"><appender</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"STDOUT"</span><span class="pln"> </span><span class="atn">class</span><span class="pun">=</span><span class="atv">"ch.qos.logback.core.ConsoleAppender"</span><span class="tag">></span><span class="pln"><br>
</span><span class="tag"><encoder></span><span class="pln"><br> </span><span class="tag"><pattern></span><span class="pln">%h %l %u %user %date "%r" %s %b</span><span class="tag"></pattern></span><span class="pln"><br>
</span><span class="tag"></encoder></span><span class="pln"><br> </span><span class="tag"></appender></span><span class="pln"><br><br> </span><span class="tag"><appender-ref</span><span class="pln"> </span><span class="atn">ref</span><span class="pun">=</span><span class="atv">"STDOUT"</span><span class="pln"> </span><span class="tag">/></span><span class="pln"><br>
</span><span class="tag"></configuration></span></pre><br><br>Thanxs,<br>Max<br>