Exemple #1
0
 @Override
 public void error(String message) {
   LogWriter logger = getLogWriter();
   if (logger == null) {
     System.err.println(getLogMessage(message));
   } else {
     logger.error(message);
   }
 }
Exemple #2
0
 @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);
   }
 }