2 Replies Latest reply on Jan 6, 2010 9:53 AM by xnak

    Capturing error messages

      Hello!

       

      I would like to capture error messages generated by HornetQ, like this one that I've found on my standard error these days:

       

      "You are in danger of running out of RAM. Have you set paging parameters on your addresses? (See user manual "Paging" chapter)
      Dec 30, 2009 3:39:04 AM org.hornetq.core.logging.Logger warn"

       

      The idea is to integrate these errors/warnings from Hornet in my application monitoring system. How can I do that?

       

      Thanks a lot!!

        • 1. Re: Capturing error messages
          timfox

          If you're using log4j many different appenders are available which allow you to send log messages to several different places, or you could write your own for your application. See the log4j documentation for more details.

           

          If you're using JUL logging I think you can do a similar thing.

          • 2. Re: Capturing error messages
            I would like to receive the error information in a Java class so I can send it through UDP to an internal monitoring app. Can I do that with log4j?