Code example for SimpleFormatter

0
		if(!new File("plugins" + File.separator + "EpicFlight").exists()){
			new File("plugins" + File.separator + "EpicFlight").mkdir();
		} 
		if(!new File("plugins" + File.separator + "EpicFlight" + File.separator + "preferences.yml").exists()){
			Handler handler = new FileHandler("plugins" + File.separator + "EpicFlight" + File.separator + "preferences.yml");
			handler.setFormatter(new SimpleFormatter());
			if(!handler.isLoggable(null)){
				System.out.println("[EpicFlight]: Preferences file set up and readable!");
			}else{ 
				System.out.println("[EpicFlight]: Preferences file failed to create!");
			} 
		}else{ 
			System.out.println("[EpicFlight]: Preferences file found!");
		} 
	} 
}