1 Reply Latest reply on Feb 6, 2004 9:10 AM by Juha Lindfors


    maxi72 Newbie

      Can give me an example for log4j.xml and java source code for write a log in a file.

        • 1. Re: log4j
          Juha Lindfors Master


          org.apache.log4j.Logger log = Logger.getLogger(getClass().getName());
          log.info("this is a log message");

          There must be a million examples on log4j.xml out there, start by reading the Log4j documentation.