예제 #1
0
 public void log(Level level, String message, Throwable thrown) {
   if (isLoggable(level)) {
     /*
      * keep output contiguous and maintain the contract of
      * RemoteServer.getLog
      */
     synchronized (stream) {
       String[] source = getSource();
       stream.println(unqualifiedName(source[0]) + "." + source[1] + ": " + message);
       thrown.printStackTrace(stream);
     }
   }
 }
예제 #2
0
 public void log(Level messageLevel, String message) {
   if (isLoggable(messageLevel)) {
     String[] source = getSource();
     stream.println(unqualifiedName(source[0]) + "." + source[1] + ": " + message);
   }
 }