3 Replies Latest reply on Jul 31, 2003 8:45 AM by frito

    Logging configuration per deployed application

    papick

      hi jboss community,



      >> is there any jboss way to add a log4j configuration into each ear ?? <<

      after lots of searching and 500 different tutorials, howtos and cookbooks on how to configure jboss-logging, I decided to post my question here...

      to the point: I am deploying 2 or 3 ears on 3 or 4 different jboss installations. I was wondering if I could place some log4j config file into the ear, so that I do not have to keep editing each jboss log4j config files for each ear on each jboss server. Managing the log4j configs is getting a very boring issue...

      brgds,

      papick

        • 1. Re: Logging configuration per deployed application
          frito

          The logging service in JBoss is configured with a log4j.xml configuration file from system resources.
          There is no generic interface to interact with some deployment information.

          Greetings,
          Frito

          • 2. Re: Logging configuration per deployed application
            papick

            oh, thanks.

            i was not expecting to find it in any deployment descriptor. the meaning of "resource:log4j.xml" is unknown to me...

            in fact i was hoping it to be something like everything in each meta-inf, conf, and so on. placing an log4j config in the meta-inf dir would solve all of my issues... is this a feature request? am i the only one needing this? or did i simply not understand logging and jboss?

            i was just wondering how to get this "many log4j config files" managed in a sane way...

            if I understood you right, the only way to configure the logging in jboss is to change the file specified in the logging service, right?

            thanks in advance,

            papick

            • 3. Re: Logging configuration per deployed application
              frito

              Yes.

              Greetings,
              Frito