Code example for StreamHandler

0
	 
	public static void initialize() { 
		if (instance == null) {
		infoLogger.setUseParentHandlers(false);
		SimpleFormatter fmt = new OneLineFormatter();
		StreamHandler sh = new StreamHandler(System.out, fmt);
		infoLogger.addHandler(sh);
		 
		instance = new DefaultLogger();
		E.setMessageHandler(instance);
		} 
	} 
	 
	 
	private DefaultLogger() { 
		 
	} 
	 
	 
	public void msg(MessageType type, String txt) {
Contextual code suggestions in your IDE  Get Codota for Java