Log message to a writer by default. It needs to be overridden by the subclasses.
try {
printPrefixString(level);
getWriter().write(message);
getWriter().write(Helper.cr());
getWriter().flush();
} catch (IOException exception) {
throw ValidationException.logIOError(exception);
}