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

    log4j

    maxi72

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

        • 1. Re: log4j

           

          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.