fedora.logging
Class DatingFileHandler

java.lang.Object
  extended byjava.util.logging.Handler
      extended byjava.util.logging.StreamHandler
          extended byfedora.logging.DatingFileHandler

public class DatingFileHandler
extends java.util.logging.StreamHandler

Title: DatingFileHandler.java

Description:

-----------------------------------------------------------------------------

License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.

-----------------------------------------------------------------------------

Version:
$Id: DatingFileHandler.java,v 1.7 2005/01/11 20:06:05 cwilper Exp $
Author:
cwilper@cs.cornell.edu

Constructor Summary
DatingFileHandler(java.io.File logDir, int maxSize, int maxDays, int maxFiles, java.lang.String ext, java.util.logging.Formatter formatter, int flushThreshold)
           
 
Method Summary
 void close()
           
 void publish(java.util.logging.LogRecord record)
           
 void setFormatter(java.util.logging.Formatter formatter)
           
 
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, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatingFileHandler

public DatingFileHandler(java.io.File logDir,
                         int maxSize,
                         int maxDays,
                         int maxFiles,
                         java.lang.String ext,
                         java.util.logging.Formatter formatter,
                         int flushThreshold)
                  throws java.io.IOException,
                         java.io.FileNotFoundException,
                         java.lang.IllegalArgumentException
Method Detail

setFormatter

public void setFormatter(java.util.logging.Formatter formatter)

publish

public void publish(java.util.logging.LogRecord record)

close

public void close()