Code example for LogRecord

0
	 * @param log The contents of the log (not including timestamp and severity) to be processed 
	 * @param level The severity level to be incorporated into the log event 
	 */ 
	protected void process(String logMessage, Level level) {
		if(this.immediateUpload) {
			le.publish(new LogRecord(level, logMessage));
		} else { 
			//add to list of offline logs 
			Date currentTime = new Date();
			String event = le.format(currentTime, logMessage, level);
			logList.add(event);
		} 
	} 
} 
/** 
 * To create more logging levels, subclass AndroidLevel with a class containing 
 * static Level objects. 
 * <br/><i>public static Level myLevel = new ExtendedLevel(levelName, levelPriority);</i> 
 * @author Caroline 
 * 29/08/11 
 */