@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); } }
@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(); } }
/** * Closes the FileHandler, so that no .lck files remain in the log folder, and flushes the * ConsoleHandler. */ public void closeLogFile() { mCHandler.flush(); mFHandler.close(); }