com.bea.logging
Class RotatingFileStreamHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
com.bea.logging.RotatingFileStreamHandler
- Direct Known Subclasses:
- FileStreamHandler
public class RotatingFileStreamHandler
- extends StreamHandler
Handler that writes to a file and rotates it based on configuration.
Method Summary |
void |
publish(LogRecord rec)
Outputs the log record to a rotating log file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
publish
public void publish(LogRecord rec)
- Outputs the log record to a rotating log file.
If the log file needs rotation, the file is rotated first
before writing the log to the file. The format of the log record is
controlled by the Log file formatter.
- Overrides:
publish
in class StreamHandler
- Parameters:
rec
-