Examples of WarLogFormatter


Examples of com.tommytony.war.utility.WarLogFormatter

      // Create an appending file handler
      new File(this.getDataFolder() + "/temp/").mkdir();
      FileHandler handler = new FileHandler(this.getDataFolder() + "/temp/war.log", true);

      // Add to War-specific logger
      Formatter formatter = new WarLogFormatter();
      handler.setFormatter(formatter);
      this.getLogger().addHandler(handler);
    } catch (IOException e) {
      this.getLogger().log(Level.WARNING, "Failed to create War log file");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.