Package java.util.logging

Examples of java.util.logging.XMLFormatter


    log = Logger.getLogger(props.getProperty(prefix
        + "log.class"));
    try{
      FileHandler fh = new FileHandler(props.getProperty(prefix
          + "log.filename"));
      fh.setFormatter(new XMLFormatter());
      log.addHandler(fh);
    }catch (IOException e) {
      e.printStackTrace();
    }
   
View Full Code Here

TOP

Related Classes of java.util.logging.XMLFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.