public class StatisticsEventLogFileAppender
extends FileAppender
Modifier and Type | Field and Description |
---|---|
protected long |
maxFileAge |
protected long |
maxFileSize |
protected long |
oldestExistingFile |
Constructor and Description |
---|
StatisticsEventLogFileAppender(Layout layout,
java.nio.file.Path dir,
java.lang.String suffix,
EventLogBuildType buildType,
java.lang.String filename) |
StatisticsEventLogFileAppender(java.nio.file.Path path,
java.util.List<java.io.File> files) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
protected void |
cleanUpOldFiles() |
protected void |
cleanUpOldFiles(long oldestAcceptable) |
static StatisticsEventLogFileAppender |
create(Layout layout,
java.nio.file.Path dir,
java.lang.String suffix,
boolean isEap) |
java.lang.String |
getActiveLogName() |
protected CountingQuietWriter |
getQuietWriter() |
void |
rollOver() |
void |
setFile(java.lang.String fileName,
boolean append,
boolean bufferedIO,
int bufferSize) |
void |
setMaxFileAge(long maxAge) |
void |
setMaxFileSize(java.lang.String value) |
protected void |
setQWForFiles(java.io.Writer writer) |
protected void |
subAppend(LoggingEvent event) |
protected long maxFileAge
protected long maxFileSize
protected long oldestExistingFile
public StatisticsEventLogFileAppender(java.nio.file.Path path, java.util.List<java.io.File> files)
public StatisticsEventLogFileAppender(Layout layout, java.nio.file.Path dir, java.lang.String suffix, EventLogBuildType buildType, java.lang.String filename) throws java.io.IOException
java.io.IOException
public static StatisticsEventLogFileAppender create(Layout layout, java.nio.file.Path dir, java.lang.String suffix, boolean isEap) throws java.io.IOException
java.io.IOException
public java.lang.String getActiveLogName()
public void setMaxFileAge(long maxAge)
public void setMaxFileSize(java.lang.String value)
protected CountingQuietWriter getQuietWriter()
protected void setQWForFiles(java.io.Writer writer)
public void setFile(java.lang.String fileName, boolean append, boolean bufferedIO, int bufferSize) throws java.io.IOException
java.io.IOException
protected void subAppend(LoggingEvent event)
public void rollOver()
protected void cleanUpOldFiles()
protected void cleanUpOldFiles(long oldestAcceptable)
public void cleanUp()