/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
/** Prints the message and the stack trace of the exception on <code>System.err</code>. */ public void error(String message, Exception e, int errorCode) { error(message, e, errorCode, null); }
@Override public void error(String message, Exception e, int errorCode, LoggingEvent event) { errorHeader.append("# ********************************************************************************").append('\n'); errorHeader.append("# ").append(new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z").format(new Date())).append('\n'); errorHeader.append("# The following error was reported while initializing logging:").append('\n'); errorHeader.append("# " + message).append('\n'); errorHeader.append("# " + e.getClass().getName() + ": " + e.getMessage()).append('\n'); errorHeader.append("# Please fix the problem and restart the application.").append('\n'); errorHeader.append("# Logs will be redirected to " + getFallbackLogFile() + " in the meantime.").append('\n'); errorHeader.append("# ********************************************************************************").append('\n'); System.err.println(errorHeader.toString()); super.error(message, e, errorCode, event); }