Hi<div><br></div><div>I'm trying to set up logback in my webservice app based on Spring and Cxf and run under Jetty. In case loggin to file using RollingFileAppender everythinks looks fine. But when i tried to set up console loggin with following properties</div>
<div><br></div><div>logback.xml:</div><div><br></div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><configuration scan="true" scanPeriod="5 seconds"></div></div>
<div><div> <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"></div><div> <encoder></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></encoder></div><div> </appender></div></div><div><br></div><div><div> <root level="WARN"></div><div> <appender-ref ref="stdout"/></div>
<div> </root></div></div><div></configuration></div><div><br></div><div>in console where i run jetty i get logs look like :</div><div><br></div><div><div>2011-05-19 11:22:04 org.apache.cxf.interceptor.AbstractLoggingInterceptor log</div>
<div>INFO: Inbound Message</div><div>----------------------------</div><div>ID: 1</div><div>Address: <a href="http://localhost:8080/services/myws/getUserById?id=1">http://localhost:8080/services/myws/getUserById?id=1</a></div>
<div>Encoding: UTF-8</div><div>Http-Method: GET</div><div>Content-Type: application/xml; charset=utf-8</div><div>Headers: {Accept=[application/xml], content-type=[application/xml; charset=utf-8], Host=[localhost:8080]}</div>
<div>--------------------------------------</div><div><br></div><div>how to set up ConsoleAppender to get line per request log like in case RollingFileAppender:<br><br></div><div>(2011-05-19 10:32:16,991 INFO [com.myws.aop.LoggingAspect] - <EXECUTION getUserById IN TIME : 12>)</div>
<div><br></div><div>using logback 0.9.28</div><br>-- <br>kind regards<br>Darek Sztwiorok<br>
</div>