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 bu...@apache.org on 2008/09/16 06:45:43 UTC
DO NOT REPLY [Bug 45816] New: Not able to change Threshold level of
any appender
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
DO NOT REPLY [Bug 45816] Not able to change Threshold level of any
appender
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45816
Jacob Kjome <ho...@visi.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Jacob Kjome <ho...@visi.com> 2008-09-16 06:08:09 PST ---
This is a question about usage, not a bug in Log4j. Please use the Log4j-user
list for questions like this, not Bugzilla. Below is a response from Bender
Heri from the Log4j-dev list. Marking bug invalid.
"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."
Jake
--
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