public void assertLogMessage(String... words) {
		for (String message : this) {
			if (StringUtilities.containsAllIgnoreCase(message, words)) {
				return;
			}
		}

		fail("Did not find log message containing all these words: " + Arrays.toString(words) +
			"\nInstead, had these messages: " + toString());
	}
An {@link ErrorLogger} implementation that lets you track log messages during testing.
Ghidra/Framework/Generic/src/test/java/ghidra/util/SpyErrorLogger.java