public class MaprfsDailyRollingLogAppender extends MaprfsLogAppender
BUFFER_SIZE, DIR_PREFIX, failoverAppender, failoverAppenderName, fileName, fileNamePath, immediateFlush, immediateSync, maprFS, nameHierarchy, syncIntervalSeconds, uri| Constructor and Description |
|---|
MaprfsDailyRollingLogAppender() |
MaprfsDailyRollingLogAppender(java.net.URI uri,
java.lang.String datePattern) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions() |
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
This method differentiates DailyRollingFileAppender from its
super class.
|
java.lang.String |
getDatePattern()
Returns the value of the DatePattern option.
|
int |
getMaxBackupIndex() |
void |
setDatePattern(java.lang.String pattern)
The DatePattern takes a string in the same format as
expected by
SimpleDateFormat. |
void |
setMaxBackupIndex(int maxBackups) |
close, closeFile, createFile, failoverToLocalLogs, flush, getFile, getFileSize, getImmediateFlush, getImmediateSync, getLogFilePermission, getSyncIntervalSeconds, hflush, hsync, requiresLayout, setFailoverAppender, setFile, setFS, setImmediateFlush, setImmediateSync, setSyncIntervalSeconds, setURI, sync, writeFooter, writeHeaderpublic MaprfsDailyRollingLogAppender()
public MaprfsDailyRollingLogAppender(java.net.URI uri,
java.lang.String datePattern)
public void setDatePattern(java.lang.String pattern)
SimpleDateFormat. This options determines the
rollover schedule.public java.lang.String getDatePattern()
public void setMaxBackupIndex(int maxBackups)
public int getMaxBackupIndex()
public void activateOptions()
activateOptions in interface org.apache.log4j.spi.OptionHandleractivateOptions in class MaprfsLogAppenderprotected void append(org.apache.log4j.spi.LoggingEvent event)
Before actually logging, this method will check whether it is time to do a rollover. If it is, it will schedule the next rollover time and then rollover.
append in class MaprfsLogAppender