logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Salazar <pedro-b-sala...@ptinovacao.pt>
Subject mixing different priority levels in different categories in the same appender (log4j.xml)
Date Fri, 28 Nov 2003 17:16:35 GMT
Greetings,

I'm trying to debug only in specific categories, however is not working
as I expected. For instance, I want put my log in this configuration:

- category A in debug
- category A.B in info
- category A.B.C in debug

I tried but it isn't working. It's printing all the debug information on
category A and below ( A.B, A.B.C ). I was expecting no debug
information from category "A.B".

Let be:

A = pt.ptinovacao.nginpro.uif 
A.B = pt.ptinovacao.nginpro.uif.ws
A.B.C = pt.ptinovacao.nginpro.uif.ws.handlers.util

Below are my log4j.xml. What is wrong?

    <appender name="FILE_PRO_UIF" 
        class="org.apache.log4j.DailyRollingFileAppender">
        <param name="File" 
            value="${jboss.server.home.dir}/log/nginpro_uif.log" />
        <param name="MaxFileSize" value="2048KB" />
        <param name="DatePattern" value="'.'yyyy-MM-dd" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" 
                value="%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%C] %m%n"/>
        </layout>
    </appender>

    <category name="pt.ptinovacao.nginpro.uif"
        additivity="false">
        <priority value="debug" />
        <appender-ref ref="FILE_PRO_UIF" />
    </category>

    <category name="pt.ptinovacao.nginpro.uif.ws.handlers.util"
        additivity="false">
        <priority value="debug" />
        <appender-ref ref="FILE_PRO_UIF" />
    </category>

    <category name="pt.ptinovacao.nginpro.uif.ws"
        additivity="false">
        <priority value="info" />
        <appender-ref ref="FILE_PRO_UIF" />
    </category>

regards,
Pedro Salazar.
-- 
PS
pedro-b-salazar@ptinovacao.pt
PGP:0E129E31D803BC61


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message