com.openindex.openestate.tool.utils
Class CustomFileAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.apache.log4j.WriterAppender
          extended by org.apache.log4j.FileAppender
              extended by com.openindex.openestate.tool.utils.CustomFileAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class CustomFileAppender
extends org.apache.log4j.FileAppender

CustomFileAppender.
$Id: CustomFileAppender.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
protected  int maxBackupIndex
           
 
Fields inherited from class org.apache.log4j.FileAppender
bufferedIO, bufferSize, fileAppend, fileName
 
Fields inherited from class org.apache.log4j.WriterAppender
encoding, immediateFlush, qw
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
CustomFileAppender()
           
 
Method Summary
 void activateOptions()
           
 int getMaxBackupIndex()
           
 void setMaxBackupIndex(int maxBackups)
           
protected  void subAppend(org.apache.log4j.spi.LoggingEvent event)
           
 
Methods inherited from class org.apache.log4j.FileAppender
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFiles
 
Methods inherited from class org.apache.log4j.WriterAppender
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
 
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
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxBackupIndex

protected int maxBackupIndex
Constructor Detail

CustomFileAppender

public CustomFileAppender()
Method Detail

activateOptions

public void activateOptions()
Specified by:
activateOptions in interface org.apache.log4j.spi.OptionHandler
Overrides:
activateOptions in class org.apache.log4j.FileAppender

getMaxBackupIndex

public int getMaxBackupIndex()

setMaxBackupIndex

public void setMaxBackupIndex(int maxBackups)

subAppend

protected void subAppend(org.apache.log4j.spi.LoggingEvent event)
Overrides:
subAppend in class org.apache.log4j.WriterAppender


Copyright © 2012 OpenEstate. All Rights Reserved.