You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Bender Heri <HB...@Ergonomics.ch> on 2008/09/16 09:33:29 UTC

RE: [SPAM (Keyword Checking)] - DO NOT REPLY [Bug 45816] New: Not able to change Threshold level of any appender - Found word(s) do not reply in the subject

This is the developper list. You should ask your question in the log4j
users list.

The level of the logger is considered first when issuing a log call.
Only if this barrier can be passed the level of each appender is
consulted. If your logger defines INFO, then DEBUG entries never pass
this filter. 

Heri 

> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org] 
> Sent: Tuesday, September 16, 2008 6:46 AM
> To: log4j-dev@logging.apache.org
> Subject: [SPAM (Keyword Checking)] - DO NOT REPLY [Bug 45816] 
> New: Not able to change Threshold level of any appender - 
> Found word(s) do not reply in the subject
> 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=45816
> 
>            Summary: Not able to change Threshold level of any appender
>            Product: Log4j
>            Version: 1.2
>           Platform: All
>         OS/Version: Windows XP
>             Status: NEW
>           Severity: critical
>           Priority: P2
>          Component: Other
>         AssignedTo: log4j-dev@logging.apache.org
>         ReportedBy: shweta_naik@persistent.co.in
> 
> 
> I am using lo4j.xml for logging
> In my xml i ve add one consoleappender & set this Threshold 
> level to debug even for rootlogger i have set level as info.
> so even i tried calling debug message on console it dosent 
> print debug msg as root lelev is info.
> but reverse is working as if i set root loglevel to debug & 
> cosole threshold to info then it will print only info message 
> on console.
> 
> but i want it should work for previous condition.
> I am not getting why it is happening.
> my log4j.xml is follows
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
>         debug="false">
> 
>         <!-- ============================== -->
>         <!-- Append messages to the console -->
>         <!-- ============================== -->
>         <appender name="CONSOLE_LOG"
>                 class="org.apache.log4j.ConsoleAppender">
>         <param name="Threshold" value="DEBUG" />                
>                 <layout class="org.apache.log4j.TTCCLayout">
>                 <param name="DateFormat" value="yyyy-MM-dd 
> HH:mm:ss z"/>
>                 <param name="TimeZone" value="UTC"/>
>                 <param name="CategoryPrefixing" 
> value="false"/>                 
>                 </layout>
>         </appender>
> 
> 
>         <root>
>                 <level value="info"></level>
>                 <appender-ref ref="CONSOLE_LOG" />
> 
>         </root>
> 
> 
> 
> </log4j:configuration>
> 
> plz help.
> 
> 
> --
> Configure bugmail: 
> https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: ------- You are 
> the assignee for the bug.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
> 
> 

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