@Override public synchronized void publish(LogRecord record) { if (!isLoggable(record)) { return; } super.publish(record); flush(); }
@Override public synchronized void flush() { if (rotate) { String newFilename = calculateFilename(); if (!filename.equals(newFilename)) { filename = newFilename; logger.log(Level.INFO, "Log rotating to {0}...", filename); updateOutput(); } } super.flush(); }