logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abramson, Rami" <rami.abram...@terayon.com>
Subject how to set the 'threshold' attrib with a customized debug level i n XML config file.
Date Sun, 02 Mar 2003 09:56:03 GMT
Hello all,

Have tried to set the overall 'threshold' attribute of appenders to a
customized debug level (using an XML config file).
Got the following error:

log4j:ERROR Attribute "threshold" with value
"TRACE#com.terayon.framework.debugLogging.XLevel" must have a value from the
list "(all|debug|info|warn|error|fatal|off|null)".

comment:  The customized debug level is recognized by the root debug level
'value'


The XML file is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
threshold="TRACE#com.terayon.framework.debugLogging.XLevel">
  <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{HH:mm:ss} %-5p [%-25.25t]
%-120.120l: %m%n" />
    </layout>
  </appender>
  <root>
    <level value="TRACE#com.terayon.framework.debugLogging.XLevel" />
    <appender-ref ref="CONSOLE" />
  </root>
</log4j:configuration>


How can I set the overall threshold to a customized debug level?

	thank you,

              Rami A.
 

---------------------------------------------------------------------
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