@Override public void error(String message) { LogWriter logger = getLogWriter(); if (logger == null) { System.err.println(getLogMessage(message)); } else { logger.error(message); } }
@Override public void error(Throwable th) { LogWriter logger = getLogWriter(); if (logger == null) { System.err.println(getLogMessage()); th.printStackTrace(System.err); } else { logger.error(getLogMessage(), th); } }