BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogic.logging
Class FileStreamHandler

java.lang.Object
  extended byjava.util.logging.Handler
      extended byjava.util.logging.StreamHandler
          extended byweblogic.logging.FileStreamHandler

public final class FileStreamHandler
extends StreamHandler

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
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
FileStreamHandler(weblogic.management.configuration.LogFileMBean config)
           
FileStreamHandler(weblogic.management.configuration.LogMBean config)
          Deprecated.  
 
Method Summary
 void publish(LogRecord rec)
          Outputs the log record to the log file.
 
Methods inherited from class java.util.logging.StreamHandler
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, wait, wait, wait
 

Constructor Detail

FileStreamHandler

public FileStreamHandler(weblogic.management.configuration.LogFileMBean config)
                  throws IOException

FileStreamHandler

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

Constructor to intialize a FileStreamHandler instance.

Throws:
IOException - If the file could not be opened successfully.
Method Detail

publish

public void publish(LogRecord rec)
Outputs the log record to the 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 associated formatter. The default formatter for log entries in the file is LogFileFormatter.

Parameters:
rec -

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