4 Replies Latest reply on Dec 11, 2009 7:51 PM by kukeltje

    How does jBPM loggin work?

      My current log output from jBPM is a mix of Java Logging and Log4J. See: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=164742


      I would like to switch off Java Logging, but can't seem to find a way to do that. I went through user and dev guides, and based on what I understood, I created a log4j.properties file, which should get rid of java logging. But it doesn't!

      It seems I am over looking something very small and obvious. Any help / pointers will be greatly appreciated.

      Using jBPM 4.2
      with Maven config
      log4j.properties in src/test/resources
      I do *NOT* have the file logging.properties.

      Thanks

      Ajay

        • 1. Re: How does jBPM loggin work?
          kukeltje

          According to http://docs.jboss.com/jbpm/v4/devguide/html_single/#d0e2609

          PVM can use JDK logging (java.util.logging) or log4j. When the first message is logged, PVM logging will make the selection with following procedure:

          1. If a logging.properties resource is found on the classpath (using the context classloader), then JDK logging will be used and that file will be used to initialize the JDK logging.
          2. If log4j is found on the classpath, then log4j will be used. The check for log4j will be done by checking availability of class org.apache.log4j.LogManager with the context classloader.
          3. If none of the above, JDK logging will be used.


          The check is *not* done based on log4j.properties but on the presence of org.apache.log4j.LogManager. Keep in mind that this should be in the context classloader path and that in this same path, *no* logging.properties should be present.

          • 2. Re: How does jBPM loggin work?

            Any idea how to do that with maven?

            • 3. Re: How does jBPM loggin work?

              or with tomcat...

              • 4. Re: How does jBPM loggin work?
                kukeltje

                uhmmmm.... maven is a build management tool.... Tomcat is a servlet engine... I do not understand your question.... Or at least not the relation to your 'problem'...