private String[] chopLines(String text) {
		text = text.replace("\r", "");
		return text.split("\n");
	}
Custom headless error logger which is used when log4j is disabled.
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/HeadlessErrorLogger.java