/** * Logs the event message to the output stream. * * @param out Stream to which the message is logged. * @param event Message to be logged. */ private void log(PrintStream out, String event) { if (null == log) { out.println(event); out.flush(); } else { log.log(event); } }