BEA Systems, Inc.

weblogic.logging
Class FileStreamHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by com.bea.logging.RotatingFileStreamHandler
              extended by weblogic.logging.FileStreamHandler
All Implemented Interfaces:
EventListener, weblogic.descriptor.BeanUpdateListener

public final class FileStreamHandler
extends RotatingFileStreamHandler
implements weblogic.descriptor.BeanUpdateListener

A simple handler which outputs text messages to a log file. This handler is used for both the server and the domain logging. Supports rotation of the log file based on settings in the LogFileMBean. In development mode the log file is rotated by default on server startup. The default policy for log rotation is size-based.

See Also:
LogFileMBean

Field Summary
 
Fields inherited from class com.bea.logging.RotatingFileStreamHandler
rotatingStream
 
Constructor Summary
FileStreamHandler(weblogic.management.configuration.LogFileMBean logConfig)
           
FileStreamHandler(weblogic.management.configuration.LogMBean config)
          Deprecated.  
 
Method Summary
 void activateUpdate(weblogic.descriptor.BeanUpdateEvent arg0)
           
 void prepareUpdate(weblogic.descriptor.BeanUpdateEvent arg0)
           
 void rollbackUpdate(weblogic.descriptor.BeanUpdateEvent arg0)
           
 
Methods inherited from class com.bea.logging.RotatingFileStreamHandler
forceRotation, getLastTimerStartTime, initialize, initialize, publish, setSeverity
 
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
 

Constructor Detail

FileStreamHandler

public FileStreamHandler(weblogic.management.configuration.LogMBean config)
                  throws IOException
Deprecated. 

Constructor to intialize a FileStreamHandler instance.

Parameters:
config - The LogMBean which specifies the file location and rotation parameters for this handler.
Throws:
IOException - If the file could not be opened successfully.

FileStreamHandler

public FileStreamHandler(weblogic.management.configuration.LogFileMBean logConfig)
                  throws IOException
Throws:
IOException
Method Detail

prepareUpdate

public void prepareUpdate(weblogic.descriptor.BeanUpdateEvent arg0)
                   throws weblogic.descriptor.BeanUpdateRejectedException
Specified by:
prepareUpdate in interface weblogic.descriptor.BeanUpdateListener
Throws:
weblogic.descriptor.BeanUpdateRejectedException

activateUpdate

public void activateUpdate(weblogic.descriptor.BeanUpdateEvent arg0)
                    throws weblogic.descriptor.BeanUpdateFailedException
Specified by:
activateUpdate in interface weblogic.descriptor.BeanUpdateListener
Throws:
weblogic.descriptor.BeanUpdateFailedException

rollbackUpdate

public void rollbackUpdate(weblogic.descriptor.BeanUpdateEvent arg0)
Specified by:
rollbackUpdate in interface weblogic.descriptor.BeanUpdateListener

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs100
Copyright 2006 BEA Systems Inc.