public class CustodianLog4JDailyRollingFileAppender
extends org.apache.log4j.FileAppender
org.apache.log4j.appender.DailyRollingFileAppender so most of the
configuration options can be taken from the documentation on that class.| Constructor and Description |
|---|
CustodianLog4JDailyRollingFileAppender()
The default constructor does nothing.
|
CustodianLog4JDailyRollingFileAppender(org.apache.log4j.Layout layout,
String filename,
String datePattern)
Instantiate a CustodianDailyRollingFileAppender and open the file
designated by filename.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions() |
protected void |
cleanupAndRollOver() |
String |
getCompressBackups() |
String |
getDatePattern()
Returns the value of the DatePattern option.
|
String |
getMaxNumberOfDays() |
void |
setCompressBackups(String compressBackups) |
void |
setDatePattern(String pattern)
The DatePattern takes a string in the same format as expected by
SimpleDateFormat. |
void |
setMaxNumberOfDays(String maxNumberOfDays) |
protected void |
subAppend(org.apache.log4j.spi.LoggingEvent event)
This method differentiates DailyRollingFileAppender from its super class.
|
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFilesappend, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeaderpublic CustodianLog4JDailyRollingFileAppender()
public CustodianLog4JDailyRollingFileAppender(org.apache.log4j.Layout layout,
String filename,
String datePattern)
throws IOException
IOExceptionpublic void setDatePattern(String pattern)
SimpleDateFormat. This options determines the rollover schedule.public String getDatePattern()
public void activateOptions()
activateOptions in interface org.apache.log4j.spi.OptionHandleractivateOptions in class org.apache.log4j.FileAppenderprotected void subAppend(org.apache.log4j.spi.LoggingEvent event)
subAppend in class org.apache.log4j.WriterAppenderpublic String getCompressBackups()
public void setCompressBackups(String compressBackups)
public String getMaxNumberOfDays()
public void setMaxNumberOfDays(String maxNumberOfDays)
protected void cleanupAndRollOver()
throws IOException
IOExceptionCopyright © 2012–2015 Facebook, Inc.. All rights reserved.