[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Re: funny behaviour using filters
From:       takidoso <Malte.Kempff () de ! equens ! com>
Date:       2009-11-17 17:07:15
Message-ID: 26393646.post () talk ! nabble ! com
[Download RAW message or body]


I am not sure if this time in the quotation all of the xml will be shown. 
I dont understand, why not all lines of my config are seen in the message
below

takidoso wrote:
> 
> Hi to all,
> I am not sure, if that is a bug or a misconcetion of my own.
> I have following log4j.xml :
> ----------------------------------
> <?xml version="1.0" encoding="UTF-8" ?> 
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> 
> <appender name="rootApp"
> class="org.apache.log4j.DailyRollingFileAppender"> 
> 
> 
> 
> <layout class="org.apache.log4j.PatternLayout"> 
> 
> </layout> 
> </appender>
> 
> <appender name="gfcApp" class="org.apache.log4j.DailyRollingFileAppender"> 
> 
> 
> 
> <layout class="org.apache.log4j.PatternLayout"> 
> 
> </layout> 
> </appender>
> 
> <appender name="fdAppErr"
> class="org.apache.log4j.DailyRollingFileAppender"> 
> 
> 
> <layout class="org.apache.log4j.PatternLayout">
> 
> </layout>
> 
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
> 
> 
> </filter>
> </appender>
> 
> 
> <appender name="fdAppLog"
> class="org.apache.log4j.DailyRollingFileAppender"> 
> 
> 
> 
> <layout class="org.apache.log4j.PatternLayout"> 
> 
> </layout> 
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
> 
> 
> </filter>
> </appender>
> 
> <appender name="fdAppTrace"
> class="org.apache.log4j.DailyRollingFileAppender"> 
> 
> 
> 
> <layout class="org.apache.log4j.PatternLayout"> 
> 
> </layout> 
> </appender>
> 
> 
> <category name="de.equens.filedemon" additivity="false"> 
> <priority value="INFO" ></priority> 
> <appender-ref ref="fdAppErr" />
> <appender-ref ref="fdAppLog" />
> </category>
> 
> <category name="de.equens.fileconverter" additivity="false"> 
> <priority value="WARN" ></priority> 
> <appender-ref ref="gfcApp" />
> </category>
> 
> 
> <root>
> <priority value="off"/>
> </root>
> 
> </log4j:configuration>
> -----------------------------------------------
> I notice, that I cannot find any warning even though I put defenitely one
> out.
> I intend with this configuration that a warning would be found in
> filedemon.log as well in filedemon.error, since I have put the logger (or
> category) to  Level Info.
> I cannot find the warning anywere, but errors and infos are where I expect
> them.
> What am i doing wrong?
> 
> Thanks for hints in advance
> 
> Takidoso
> 
> http://old.nabble.com/file/p26393423/log4j.xml log4j.xml 
> 

-- 
View this message in context: \
http://old.nabble.com/funny-behaviour-using-filters-tp26393423p26393646.html Sent \
from the Log4j - Users mailing list archive at Nabble.com.


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic