You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by dj...@javtech.com on 2001/02/21 22:53:13 UTC

Help! LOG4J giving strange output

I am using the JMSAppender/JMSSink combination.  The JMSSink is receiving
the LoggingEvents, but is producing the following output:
   
    2001-02-21 16:14:17,760 DEBUG [main] ? (?:?) - Debug

Strange thing is that it works when I add a FileAppender to root *before*
the JMSAppender.  This only works if the FileAppender is before the
JMSAppender!

<root> 
  <appender-ref ref="STDOUT"/>  // this is a FileAppender
  <appender-ref ref="JMSAppender1"/>
<root>

Here are my appenders:

<appender name="STDOUT" class="org.apache.log4j.FileAppender">
    <param name="File" value="System.out"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) -
%m\n"/>
    </layout>
  </appender>
  <appender name="JMSAppender1" class="org.apache.log4j.net.JMSAppender">
    <param name="TopicConnectionFactoryBindingName"
value="javax.jms.TopicConnectionFactory"/>
    <param name="TopicBindingName" value="LOG"/>
 </appender>

I am running with "-classic".


Thanks