File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes AsyncAppender in log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "AsyncAppender in log4j" Watch "AsyncAppender in log4j" New topic
Author

AsyncAppender in log4j

Ram Doss
Greenhorn

Joined: Mar 28, 2003
Posts: 6
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.....???
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: AsyncAppender in log4j
 
Similar Threads
JMSAppender and logging
Log4j - JMSAppender - ActiveMQ - JNDI
JMSAppender and jboss.
Configuring JMSAppender in JBoss
JMSappender onMessage(Message message) in MDB