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

m.bresciani at email.it m.bresciani at email.it
Mon Mar 9 17:06:33 CET 2009


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">
<!--
*********************************************************************** -->
<!-- *************************************************************
Appenders -->
<!--
*********************************************************************** -->
<!-- Appender for WebEML logging. Unspecified log goes here -->
    <appender name="WebEML" class="ch.qos.logback.core.FileAppender" >
        <file>trace/WebEML.log</file>
        <append>false</append>
        <!-- admit only ERROR messages in this appender -->
<!--        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
            <level>error</level>
        </filter>-->
        <layout>
            <pattern>%d{yyyy-MM-dd HH:mm:ss},%p,%c,%F,%C{1} %m%n</pattern>
        </layout>
    </appender>
<!-- Appender for NEtO component logging. All Com.Alcatel.WTD.NEtO goes
here -->
    <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>

<!--
*********************************************************************** -->
<!-- ***************************************************************
Loggers -->
<!--
*********************************************************************** -->
<!-- Specific logger for NEtO package. -->
    <logger name="com.alcatel.wtd.neto" additivity="false">
        <appender-ref ref="NEtO"/>
    </logger>
<!-- Root logger -->
    <root level="DEBUG">
        <appender-ref ref="WebEML"/>
    </root>
</configuration>



Thanks,

Marco

--------------------------------------------------------------------
mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint




More information about the Logback-user mailing list