Code example for Logger

Methods: configfinefinerfinestinfoseverewarning

0
 
	// private static Logger log = Logger.getLogger(name, 
	// "jdk14logger/LocalTest"); 
 
	public void sub() { 
		log.severe("severe level");// <= (1)
		log.warning("warning level");// <= (2)
		log.info("info level");// <= (3)
		log.config("config level");// <= (4)
		log.fine("fine level");// <= (5)
		log.finer("finer level");// <= (6)
		log.finest("finest level");// <= (7)
 
	} 
 
	public static void main(String[] args) {
		LevelTest test = new LevelTest();
		test.sub();
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE