0 Replies Latest reply on Nov 7, 2008 12:31 AM by manish goyal

    JMSAppender configuration in log4j.xml file

    manish goyal Newbie

      Hi,

       

      I need to configure my log4j.xml file to log into ActiveMQ JMS queue.

      I have configured my java class file as logger using following settings:-

      static Logger myLogger = Logger.getLogger(MyClass.class.getName());

      myLogger.setLevel(Level.INFO);

      myLayout= new SimpleLayout();

      myAppender= new JMSAppender();

      myLogger.addAppender(myAppender);

       

      Please tell me the configuration of log4j.xml file to log into ActiveMQ JMS queue.

       

      Please reply me soon.

       

      Thanks a lot.

       

      Regards,

      Manish