[logback-user] Multiple files and other issues (part 2)
Marco Bresciani
m.bresciani at email.it
Fri Mar 13 20:59:38 CET 2009
I made it!
I've redone the file using the online wizard and now seems working fine.
>From now on I'll have to think about the simplest usage of MDC, something like
a startup timestamp added to each application session.
Thanks,
Marco
Ceki Gulcu ha scritto:
>
> 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>
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5248 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://qos.ch/pipermail/logback-user/attachments/20090313/f66875ff/attachment-0001.bin>
More information about the Logback-user
mailing list