3 Replies Latest reply on Oct 15, 2003 6:05 AM by frito

    seperate logging 4 applications

    kar2000

      I have jboss 3.0.7 and there are 2 applications as 2 different war files deployed in it. the 2 applications have different properties configured for Logging using Log4J. Inspite of that, i face a problem with the logs generated by the 2 applications. I have specifed different Log files in the log4j.properties files created for the 2 different applications. But the following happens - I run an application, and its logs go properly in its own log. Now when i start the other application, its logs also goes in the first application log and not in its own log file. please advise how i can get the logs in seperate files for the applications..

        • 1. Re: seperate logging 4 applications
          frito

          Logging is configured with conf/log4j.xml for each server. You can't log each application in a simple way.

          Greetings,
          Frito

          • 2. Re: seperate logging 4 applications
            kar2000

            we ar enot using log4j.xml for Log4J configuration. Instead, we are making use of a log4j.properties file that defines the appender, file name, and size for hte Logs. We have 2 different log4j.properties file that reside within the war folders of the 2 applications.

            • 3. Re: seperate logging 4 applications
              frito

              Don't run away with the idea. It's not in your power.
              As I told you: JBoss is using log4j for logging and I even told you where it is configured.

              Using some more (deployed) configuration files is up to you. But you won't get what you expect. Why? Read my posting above!

              Greetings,
              Frito