private synchronized void writeLog(String line) {
		if (logWriter == null) {
			return;
		}
		logWriter.println(line);
	}
Custom headless error logger which is used when log4j is disabled.
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/HeadlessErrorLogger.java