Hi

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

logback.xml:

<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="5 seconds">
    <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
    </appender>

    <root level="WARN">
        <appender-ref ref="stdout"/>
    </root>
</configuration>

in console where i run jetty i get logs look like :

2011-05-19 11:22:04 org.apache.cxf.interceptor.AbstractLoggingInterceptor
log
INFO: Inbound Message
----------------------------
ID: 1
Address: http://localhost:8080/services/myws/getUserById?id=1
Encoding: UTF-8
Http-Method: GET
Content-Type: application/xml; charset=utf-8
Headers: {Accept=[application/xml], content-type=[application/xml;
charset=utf-8], Host=[localhost:8080]}
--------------------------------------

how to set up ConsoleAppender to get line per request log like in case
RollingFileAppender:

(2011-05-19 10:32:16,991 INFO [com.myws.aop.LoggingAspect] - <EXECUTION
getUserById IN TIME : 12>)

using logback 0.9.28

-- 
kind regards
Darek Sztwiorok
_______________________________________________
Logback-user mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-user

Reply via email to