net.sf.magicproject.tools
Class RollingFileAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.apache.log4j.WriterAppender
          extended by org.apache.log4j.FileAppender
              extended by org.apache.log4j.RollingFileAppender
                  extended by net.sf.magicproject.tools.RollingFileAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class RollingFileAppender
extends org.apache.log4j.RollingFileAppender

Since:
0.82
Author:
Fabrice Daugan

Constructor Summary
RollingFileAppender()
          The default constructor simply calls its FileAppender parents constructor.
RollingFileAppender(org.apache.log4j.Layout layout, java.lang.String filename)
          Instantiate a FileAppender and open the file designated by filename.
RollingFileAppender(org.apache.log4j.Layout layout, java.lang.String filename, boolean append)
          Instantiate a RollingFileAppender and open the file designated by filename.
 
Method Summary
 
Methods inherited from class org.apache.log4j.RollingFileAppender
getMaxBackupIndex, getMaximumFileSize, rollOver, setFile, setMaxBackupIndex, setMaxFileSize, setMaximumFileSize
 
Methods inherited from class org.apache.log4j.FileAppender
activateOptions, getAppend, getBufferedIO, getBufferSize, getFile, setAppend, setBufferedIO, setBufferSize, setFile
 
Methods inherited from class org.apache.log4j.WriterAppender
append, close, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RollingFileAppender

public RollingFileAppender()
The default constructor simply calls its FileAppender parents constructor.


RollingFileAppender

public RollingFileAppender(org.apache.log4j.Layout layout,
                           java.lang.String filename,
                           boolean append)
                    throws java.io.IOException
Instantiate a RollingFileAppender and open the file designated by filename. The opened filename will become the ouput destination for this appender.

If the append parameter is true, the file will be appended to. Otherwise, the file desginated by filename will be truncated before being opened.

Parameters:
layout - The layout parameter does not need to be set if the appender implementation has its own layout.
filename - The path to the log file.
append - If true will append to fileName. Otherwise will truncate fileName.
Throws:
java.io.IOException - If some other I/O error occurs

RollingFileAppender

public RollingFileAppender(org.apache.log4j.Layout layout,
                           java.lang.String filename)
                    throws java.io.IOException
Instantiate a FileAppender and open the file designated by filename. The opened filename will become the output destination for this appender.

The file will be appended to.

Parameters:
layout - The layout parameter does not need to be set if the appender implementation has its own layout.
filename - The path to the log file.
Throws:
java.io.IOException - If some other I/O error occurs


Copyright © 2003-2007 Magic-Project. All Rights Reserved.