1 Reply Latest reply on May 25, 2005 4:31 AM by dimitris

    Separate logging file for each mbean

    yangju

      I am not sure I should ask the logging question here or somewhere else.
      But I have one sar with serveral mbeans defined. I wonder if I can config jboss so that each mbean has its own logging? How?
      Do I have to deploy one sar for each mbean to achieve this?

      What if I have jboss-service.xml outside the sar with multiple mbeans defined. What should I do to get one logging per sar?

      Another question is that my mbean implementations extends jboss ServiceMBeanSupport class. That class has a logging. My own application has logging too. How do I combine them togehter?

      Thanks.

      Richard

        • 1. Re: Separate logging file for each mbean
          dimitris

          If you extend ServiceMBeanSupport you use the underlying log4j logger, so edit conf/log4j.xml to modify the log level for your mbeans (based on Logger name) or create your own appenders to redirect the output to files.

          The only problem here is this is statically defined.