Code example for LogRecord

Methods: getSequenceNumber

0
		this.fallbackFormater = checkNotNull(formatter, "formatter cannot be null");
	} 
 
	@Override 
	public String format(LogRecord event) {
		String lookupKey = "_"+event.getSequenceNumber();
		LogEvent _event = Switchboard.get(lookupKey);
		StringBuilder data = _event != null ? format.format(_event) : null;
 
		if (data != null) {
			return data.append("\n").toString();
		} else if (fallbackFormater != null) {
			return fallbackFormater.format(event);
		} else { 
			return ""; 
		} 
	} 
}