3 Replies Latest reply on Jul 28, 2008 11:40 AM by peterj

    logging from java.util.logging

    erezharari

      what happens to logging done with java.util.logging? does it get to log4j logs?
      say i'm using facelets which uses java.util.logging - where do the logs go?

        • 1. Re: logging from java.util.logging
          peterj

          There is a global logging configuration file at java_home/jre/lib/logging.properties. If the logging configuration has logging statements got to stdout or stderr, the log4j library within jbossas will intercept those an report them as either INFO or ERROR entries in the console and server.log.

          • 2. Re: logging from java.util.logging
            erezharari

            SO by default idoes not? would you have an example for " the logging configuration has logging statements got to stdout or stderr"?

            • 3. Re: logging from java.util.logging
              peterj

              I looked at the logging.properties file and found the answer to your question. You can do likewise. If you are unclear on one of the configuration options, you can always ask about that.

              For the example, I don't have any output from java logging (never use it), but anything written using System.out.println() would show up in the same way. Here's an example of such an output from server.log:

              2008-07-23 15:29:16,020 INFO [STDOUT] (main) ======> Creating interceptor metadata bridge

              So I guess any output to the console from java logging you look like:

              2008-07-23 15:29:16,020 INFO [STDOUT] text from java logging