コード例 #1
0
ファイル: ConsoleManager.java プロジェクト: kitskub/Glowstone
 @Override
 public synchronized void publish(LogRecord record) {
   if (!isLoggable(record)) {
     return;
   }
   super.publish(record);
   flush();
 }
コード例 #2
0
ファイル: ConsoleManager.java プロジェクト: BungMc/Bung
 private void checkRotate() {
   if (rotate) {
     String newFilename = calculateFilename();
     if (!filename.equals(newFilename)) {
       filename = newFilename;
       // note that the console handler doesn't see this message
       super.publish(new LogRecord(Level.INFO, "Log rotating to: " + filename));
       updateOutput();
     }
   }
 }
コード例 #3
0
 public void publish(LogRecord record) {
   super.publish(record);
   flush();
 }
コード例 #4
0
 @Override
 public void publish(LogRecord record) {
   if (!frame.isVisible()) return;
   super.publish(record);
   flush();
 }
コード例 #5
0
 /**
  * Publish a <tt>LogRecord</tt>.
  *
  * <p>The logging request was made initially to a <tt>Logger</tt> object, which initialized the
  * <tt>LogRecord</tt> and forwarded it here.
  *
  * <p>
  *
  * @param record description of the log event. A null record is silently ignored and is not
  *     published
  */
 public synchronized void publish(LogRecord record) {
   if (logThrottle == null || logThrottle.checkPublishLogRecordLocal()) {
     super.publish(record);
     flush();
   }
 }
コード例 #6
0
 public synchronized void publish(LogRecord record) {
   super.publish(record);
   super.flush();
 }