private synchronized String eventsToString() {

		int size = events.size();
		int length = Integer.toString(size).length();

		StringBuilder buffy = new StringBuilder("Recorded Events - " + recorderName + '\n');
		for (SpyEvent event : events) {
			buffy.append(event.toString(length)).append('\n');
		}
		return buffy.toString();
	}
Records messages for later playback.  This can be useful for tracking the order of sequences/
callbacks.
Ghidra/Framework/Docking/src/test/java/ghidra/docking/spy/SpyEventRecorder.java