Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AsyncAppender in log4j

 
Ram Doss
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How do I add appenders to AsyncAppender so that I can direct some log data to be dispatch to FileAppender while other dispatch to JSMAppender..??
i.e. in my Source
JMSAppender jmsAppender = new JMSAppender();
AsyncAppender asyncAppender = new AsyncAppender();
asyncAppender.addAppender(jmsAppender);
logger.addAppender(asyncAppender);

but it actually not dispatching to JMS Queue which attached to the JMSAppender.
Any suggestions.....???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic