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