@Override
 public synchronized void publish(LogRecord record) {
   if (!isLoggable(record)) {
     return;
   }
   super.publish(record);
   flush();
 }
Exemple #2
0
 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();
     }
   }
 }
Exemple #3
0
 public void publish(LogRecord record) {
   super.publish(record);
   flush();
 }
 @Override
 public void publish(LogRecord record) {
   if (!frame.isVisible()) return;
   super.publish(record);
   flush();
 }
 /**
  * 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();
   }
 }
 public synchronized void publish(LogRecord record) {
   super.publish(record);
   super.flush();
 }