Code example for LogRecord

Methods: getMessage, getParameters

0
		Log logger = Log.get(loggerName);
		logger.log(toLevel(record.getLevel()), getMessage(record));
	} 
 
	public static String getMessage(LogRecord record) {
		String msg = record.getMessage();
		Object[] parameters = record.getParameters();
		if (parameters != null && parameters.length > 0) {
			msg = MessageFormat.format(msg, parameters);
		} 
		return msg;
	} 
 
	private static class LoggerRedirectionHandler extends Handler {
 
		@Override 
		public void close() throws SecurityException {} 
 
		@Override 
		public void flush() { 
			Log.flush();