I think the latest changes to the core classes affected appenders/etc.  

After commiting AndFilter, I realized I hadn't retrieved the latest CVS 
changes.  Once I did, the appender config stopped working.

Here's an example config file that should cause events to be displayed on the 
console, but doesn't.  There's no longer mention of a ConsoleAppender being 
created, etc.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"; 
debug="true">
   <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
      <layout class="org.apache.log4j.SimpleLayout"/>
   </appender>

   <root>
      <level value="debug"/>
      <appender-ref ref="STDOUT"/>
   </root>
</log4j:configuration>


Here's the output:

*** configurationOptionStr=sample2.xml
log4j:INFO Using URL [file:/C:/sample2.xml] for automatic log4j configuration 
of repository named [default].
log4j:INFO Creating new logger [org.apache.log4j.helpers.OptionConverter] in 
repository [default].
Before instantiateByClassName
Before  configurator.doConfigure()
log4j:INFO Creating new logger [org.apache.log4j.joran.util.JoranDocument] in 
repository [default].
log4j:INFO Returning existing logger 
[org.apache.log4j.joran.util.JoranDocument] in repository [default].
log4j:INFO Returning existing logger [org.apache.log4j] in repository [default].
log4j:INFO Creating new logger 
[org.apache.log4j.joran.action.ConfigurationAction] in repository [default].
log4j:INFO Creating new logger [org.apache.log4j.joran.action.AppenderAction] 
in repository [default].
log4j:INFO Creating new logger [org.apache.log4j.joran.action.LayoutAction] in 
repository [default].
log4j:INFO Creating new logger [org.apache.log4j.joran.action.RootLoggerAction] 
in repository [default].
log4j:INFO Creating new logger [org.apache.log4j.joran.action.LevelAction] in 
repository [default].
log4j:INFO Creating new logger 
[org.apache.log4j.joran.action.AppenderRefAction] in repository [default].
log4j:INFO Returning existing logger [org.apache.log4j] in repository [default].
log4j:INFO Creating new logger [org.apache.log4j.joran.JoranConfigurator] in 
repository [default].
log4j:INFO Returning existing logger [org.apache.log4j] in repository [default].
** End of LogManager static initializer
log4j:INFO LogManager.getLogger(firstlogger) called
log4j:INFO Creating new logger [firstlogger] in repository [default].
log4j:INFO LogManager.getLogger(someotherlogger) called
log4j:INFO Creating new logger [someotherlogger] in repository [default].
log4j:INFO LogManager.getLogger(anotherlogger) called
log4j:INFO Creating new logger [anotherlogger] in repository [default].

<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to