Esempio n. 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);
     }
   }
 }
Esempio n. 2
0
 public void log(Level messageLevel, String message) {
   if (isLoggable(messageLevel)) {
     String[] source = getSource();
     stream.println(unqualifiedName(source[0]) + "." + source[1] + ": " + message);
   }
 }