
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@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>