예제 #1
0
 @Override
 public void warning(String message) {
   LogWriter logger = getLogWriter();
   if (logger == null) {
     printMessage("warning", getLogMessage(message));
   } else {
     logger.warning(getLogMessage(message));
   }
 }
예제 #2
0
 @Override
 public void warning(Throwable th) {
   LogWriter logger = getLogWriter();
   if (logger == null) {
     printMessage("warning", getLogMessage());
     th.printStackTrace(System.out);
   } else {
     logger.warning(getLogMessage(), th);
   }
 }