• 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.....???
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!