[logback-user] Multiple files and other issues (part 2)

Ceki Gulcu ceki at qos.ch
Mon Mar 9 18:28:50 CET 2009


The configuraition file looks good. Can you send a few lines of logging output 
in WebEML.log which should be in NEtO.log?


m.bresciani at email.it wrote:
> Hello all,
>   I've tried to follow the guidelines and added the file Ceki suggested me.
> Anyway, it seems that the special package (here below
> "com.alcatel.wtd.neto") does not go into itst own file (here below
> "trace/NEtO.log) but remains in the main one (here below
> "trace/WebEML:log"). Any idea? This is it:
> 
> <configuration debug="true">

>     <appender name="WebEML" class="ch.qos.logback.core.FileAppender" >
>         <file>trace/WebEML.log</file>
>         <append>false</append>
>         <layout>
>             <pattern>%d{yyyy-MM-dd HH:mm:ss},%p,%c,%F,%C{1} %m%n</pattern>
>         </layout>
>     </appender>

>     <appender name="NEtO" class="ch.qos.logback.core.FileAppender" >
>         <file>trace/NEtO.log</file>
>         <append>false</append>
>         <layout>
>             <pattern>%d{yyyy-MM-dd HH:mm:ss},%p,%c,%F,%C{1} %m%n</pattern>
>         </layout>
>     </appender>
> 
>     <logger name="com.alcatel.wtd.neto" additivity="false">
>         <appender-ref ref="NEtO"/>
>     </logger>
>     <root level="DEBUG">
>         <appender-ref ref="WebEML"/>
>     </root>
> </configuration>
> 
-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch


More information about the Logback-user mailing list