Code example for Handler

Methods: setLevel

0
		log = Logger.getLogger(WDLogger.class.getName());
	}	 
	 
	public static void addHandler(Handler handler, Level l){			
		log.addHandler(handler);
		handler.setLevel(l);
	} 
	 
	public static void logInfo(String message){
		log.log(Level.INFO, message);
	} 
 
	 
	public static void logSevere(String message){
		log.log(Level.SEVERE, message);
	} 
	 
	public static void logSevere(Throwable e){		
		log.log(Level.SEVERE, e.getMessage(), e);
	}