Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I want to send logs to a queue in ActiveMQ using log4j - I already did it, but to a topic.

 
Juan Sotelo
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Like the title said: I want to send logs to a queue in ActiveMQ using log4j - I already did it, but to a topic. is this possible?? What do I have to change in the appender??

log4j.appender.jms=org.apache.log4j.net.JMSAppender
log4j.appender.jms.InitialContextFactoryName=org.apache.activemq.jndi.ActiveMQInitialContextFactory
log4j.appender.jms.ProviderURL=tcp://localhost:61616
log4j.appender.jms.TopicBindingName=logTopic
log4j.appender.jms.TopicConnectionFactoryBindingName=ConnectionFactory
log4j.appender.jms.Threshold=ERROR

log4j.rootLogger=INFO, jms

Thanks in advance!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic