JMSAppender layout
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alex_Bierhoff
Posted On:   Tuesday, March 22, 2005 09:06 PM

I have attempted to use a layout for JMSAppender, but it is not being applied, in fact the Layout for the LoggingEvent is null? How can I force the JMSAppender to apply this pattern before it creates the ObjectMessage and puts it on my topic? Here is my config log4j.appender.JMSAppender=org.apache.log4j.net.JMSAppender log4j.appender.JMSAppender.InitialContextFactoryName=weblogic.jndi.WLIn= itialContextFactory log4j.appender.JMSAppender.ProviderURL=t3://localhost:7001 log4j.appender.JMSAppender.TopicConnectionFactoryBindingName=LoggingConnectionFactory log4j.appender.JMSAppender.TopicBindingName=LoggingTopic log4j.appender.JMSAppender.UserName=system log4j.appende   More>>

I have attempted to use a layout for JMSAppender, but it is not being applied, in fact the Layout for the LoggingEvent is null?

How can I force the JMSAppender to apply this pattern before it creates
the ObjectMessage and puts it on my topic?

Here is my config

log4j.appender.JMSAppender=org.apache.log4j.net.JMSAppender
log4j.appender.JMSAppender.InitialContextFactoryName=weblogic.jndi.WLIn=
itialContextFactory
log4j.appender.JMSAppender.ProviderURL=t3://localhost:7001
log4j.appender.JMSAppender.TopicConnectionFactoryBindingName=LoggingConnectionFactory
log4j.appender.JMSAppender.TopicBindingName=LoggingTopic
log4j.appender.JMSAppender.UserName=system
log4j.appender.JMSAppender.password=security
log4j.appender.JMSAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.JMSAppender.layout.ConversionPattern=(%C:%M:%L) - %m%n


Can any body help me with this???

   <<Less
About | Sitemap | Contact