Hi, Here is my configuration (in XML) of my JMS Appender:
<appender name="JMS" class="org.apache.log4j.net.JMSAppender"> <param name="TopicConnectionFactoryBindingName" value="cn=LoggingTopicConnectionFactory"/> <param name="TopicBindingName" value="cn=LoggingTopic"/> <param name="Threshold" value="DEBUG"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%-5p] [%d{DATE}] [%C.%M] - %m%n"/> </layout> </appender> As you can see I'm using PatternLayout. The message is sent out onto JMS as a serialised java object (org.apache.log4j.spi.LoggingEvent) wrapped in an javax.jms.ObjectMessage. On the class org.apache.log4j.spi.LoggingEvent, I can use methods getMessage() and getRenderedMessage(). Both return the %m message string, but I would expect getRenderedMessage() to return the rendered message as defined in the layout in the configuration. Is this a bug, as the message should have been rendered before sending the message out on the JMS appender? Regards, Peter ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ********************************************************************