Oracle

com.bea.logging
Class RotatingFileStreamHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by 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.util.logging.StreamHandler
close, flush, isLoggable, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 -

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs103
Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.