java.lang.Objectorg.apache.log4j.AppenderSkeleton
org.apache.log4j.WriterAppender
org.apache.log4j.FileAppender
All Implemented Interfaces:
OptionHandler, Appender
Direct Known Subclasses:
ExternallyRolledFileAppender, DailyRollingFileAppender, RollingFileAppender, DailyFileAppender, CompositeRollingAppender
Support for java.io.Writer and console appending
has been deprecated and then removed. See the replacement
solutions: WriterAppender and ConsoleAppender .
Ceki - Gülcü| Field Summary | ||
|---|---|---|
| protected boolean | fileAppend | Controls file truncatation. The default value for this variable
is true, meaning that by default a
FileAppender will append to an existing file and not
truncate it.
This option is meaningful only if the FileAppender opens the file. |
| protected String | fileName | The name of the log file. |
| protected boolean | bufferedIO | Do we do bufferedIO? |
| protected int | bufferSize | Determines the size of IO buffer be. Default is 8K. |
| Fields inherited from org.apache.log4j.WriterAppender: |
|---|
| immediateFlush, encoding, qw |
| Fields inherited from org.apache.log4j.AppenderSkeleton: |
|---|
| layout, name, threshold, errorHandler, headFilter, tailFilter, closed |
| Constructor: |
|---|
|
filename. The opened filename will become the output
destination for this appender.
The file will be appended to. |
filename. The opened filename will become the output
destination for this appender.
If the |
FileAppender and open the file
designated by filename. The opened filename will
become the output destination for this appender.
If the If the |
| Method from org.apache.log4j.FileAppender Summary: |
|---|
| activateOptions, closeFile, getAppend, getBufferSize, getBufferedIO, getFile, reset, setAppend, setBufferSize, setBufferedIO, setFile, setFile, setQWForFiles |
| Methods from org.apache.log4j.WriterAppender: |
|---|
| activateOptions, append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, reset, setEncoding, setErrorHandler, setImmediateFlush, setWriter, subAppend, writeFooter, writeHeader |
| Methods from org.apache.log4j.AppenderSkeleton: |
|---|
| activateOptions, addFilter, append, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.log4j.FileAppender Detail: |
|---|
null, then #setFile is called with the values of File and
Append properties. |
|
|
|
BufferedIO will significatnly increase performance on heavily loaded systems. |
|
reset. |
true by default. If true, then File
will be opened in append mode by setFile (see
above). Otherwise, setFile will open
File in truncate mode.
Note: Actual opening of the file is made when #activateOptions is called, not when the options are set. |
|
false by default. If true, then File
will be opened and the resulting java.io.Writer wrapped
around a BufferedWriter .
BufferedIO will significatnly increase performance on heavily
loaded systems. |
Note that the special values "System.out" or "System.err" are no longer honored. Note: Actual opening of the file is made when #activateOptions is called, not when the options are set. |
Sets and opens the file where the log output will go. The specified file must be writable. If there was already an opened file, then the previous file is closed first. Do not use this method directly. To configure a FileAppender or one of its subclasses, set its properties one by one and then call activateOptions. |
|