2 Replies Latest reply on Jan 27, 2003 12:45 PM by melriffe

    Can my web apps have their own log files...

    melriffe

      without modifying jboss' copy of log4j.xml file?

      I apologize now if this question has been answered before; my searches did not provide an exact answer.

      I would like my web apps to have their own log4j configurations (jar file, conf file, log files, etc) but jboss seems to gobble up my log statements.

      Have I over looked something simple? Any assistance will be greatly appreciated.

      Thanks...

      Mel Riffe

        • 1. Re: Can my web apps have their own log files...
          mikefinn

          Not that I know of. The log4j configurators are singletons, so I don't know how you could have multiple 'congurations' in the same JVM. It'd be a good question for the good folks on log4j proj if you don't get a satisfactory answer here.

          You could, using your own known categories, assign those categories to specific appenders (which could then be directed to their own respective files). It's not as flexible (per-deploy-configurable) as you seem to want, but it'll get you close.

          We have a convention by which categories are based on our package names, so output granularity (and method) is controlled by pkg.

          mike

          • 2. Re: Can my web apps have their own log files...
            melriffe

            Thank you for the information.

            I had a feeling that would be the case. However, I do wonder (as I don't have direct experience) how people get Tomcat to handle separate log4j configuration for its installed web apps.

            If anyone has experience doing this, can you please tell me how? I doubt Tomcat starts a JVM for each web app...

            Thanks...

            Mel