SSISO Community

시소당

log4j: simple log

/*
Logging  In  Java  with  the  JDK  1.4  Logging  API  and  Apache  log4j
by  Samudra  Gupta        
Apress  Copyright  2003  
ISBN:1590590996

*/
import  org.apache.log4j.Logger;

public  class  SimpleLogging  {
        /**  Creates  a  new  instance  of  SimpleLogging  */
        public  SimpleLogging()  {
        }

        /**
          *  @param  args  the  command  line  arguments
          */
        public  static  void  main(String[]  args)  {
                Logger  logger  =Logger.getLogger("name");
                logger.info("Hello  this  is  an  info  message");
        }
}

666 view

4.0 stars