9 Replies Latest reply on Oct 21, 2010 2:38 PM by henk de boer

    java.util.logging to Log4j mapping

    Alexandre Mendonça Newbie

      Hi all,

      I'm having an issue when using java.util.logging.Logger, the output gets into ERROR level and into STDERR making it look like an error message. For instance, this line:

      java.util.logging.Logger.getLogger(this.getClass().getName()).log( java.util.logging.Level.INFO, "This is an INFO message!" );

      turns into:

      12:07:22,625 ERROR [STDERR] May 22, 2008 12:07:22 PM org.apache.jsp.hi_jsp _jspService
      INFO: This is an INFO message!

      Any reason why this is happening? I've looked at the log4j configuration and can't find any clue.

      Thanks for the help,
      Alexandre Mendonca