예제 #1
0
 @Override
 public synchronized void flush() {
   try {
     if (jLine) {
       reader.print(ConsoleReader.RESET_LINE + "");
       reader.flush();
       super.flush();
       try {
         reader.drawLine();
       } catch (Throwable ex) {
         reader.getCursorBuffer().clear();
       }
       reader.flush();
     } else {
       super.flush();
     }
   } catch (IOException ex) {
     logger.log(Level.SEVERE, "I/O exception flushing console output", ex);
   }
 }
예제 #2
0
 @Override
 public synchronized void flush() {
   try {
     if (jLine && jTerminal == null) {
       reader.printString(ConsoleReader.RESET_LINE + "");
       reader.flushConsole();
       super.flush();
       try {
         reader.drawLine();
       } catch (Throwable ex) {
         reader.getCursorBuffer().clearBuffer();
       }
       reader.flushConsole();
     } else {
       super.flush();
     }
   } catch (IOException ex) {
     server.getLogger().severe("I/O exception flushing console output");
     ex.printStackTrace();
   }
 }
예제 #3
0
 /**
  * Closes the FileHandler, so that no .lck files remain in the log folder, and flushes the
  * ConsoleHandler.
  */
 public void closeLogFile() {
   mCHandler.flush();
   mFHandler.close();
 }