Code example for SimpleFormatter

0
		if (SysData.isLog()) { 
			if (lr == null) {
				try { 
					lr = Logger.getAnonymousLogger();
					if (Config.getBoolean("isTxt",true)) { 
						SysData.getTfh().setFormatter(new SimpleFormatter());
						lr.addHandler(SysData.getTfh());
					} else { 
						SysData.getXfh(); 
						lr.addHandler(SysData.getXfh());
					} 
				} catch (Exception e) {
					return; 
				} 
			} 
			try { 
				lr.logp(level, kk, title, body);
			} catch (Exception e) {
			} 
		} 
	}