Code example for LogRecord

Methods: getLevelgetMessagegetMillisgetSourceClassNamegetSourceMethodName

0
		StringBuilder sb=new StringBuilder();
		 
		/* 
		 * Add the parts of the message with the desired format. 
		 */ 
		sb.append("["+record.getLevel()+"] - ");
		sb.append(new Date(record.getMillis())+" : ");
		sb.append(record.getSourceClassName()+"."+record.getSourceMethodName()+" : ");
		sb.append(record.getMessage()+"\n");
		 
		/* 
		 * Convert the string buffer to string and return it 
		 */ 
		return sb.toString();
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java