Code example for ConsoleHandler

0
	private static Handler handler;
	 
	private static Logger initLogger() {
		Logger log = Logger.getLogger("eve");
		log.setUseParentHandlers(false);
		handler = new ConsoleHandler();
		handler.setFormatter(new EveFormatter());
		log.addHandler(handler);
		return log;
	} 
	 
	public static void severeLeve() { 
		log.setLevel(Level.SEVERE);
		log.setLevel(Level.SEVERE);
	} 
	 
	public static void infoLevel() { 
		log.setLevel(Level.INFO);
		handler.setLevel(Level.INFO);
	}