/** * Append the specified message information to the writer. */ protected void writeMessage(String message) throws IOException { this.getWriter().write(message); }
/** * Append the separator string to the writer. */ protected void writeSeparator() throws IOException { this.getWriter().write("--"); } }
this.getWriter().write(getSupplementDetailString(entry)); entry.getException().printStackTrace(new PrintWriter(getWriter())); } else if (entry.getLevel() <= WARNING) { if (shouldLogExceptionStackTrace()) { entry.getException().printStackTrace(new PrintWriter(getWriter())); } else { writeMessage(entry.getException().toString()); writeMessage(formatMessage(entry)); getWriter().write(Helper.cr()); getWriter().flush(); } catch (IOException exception) { throw ValidationException.logIOError(exception);