public static class LoggingBuilder.RollingFileAppender extends LoggingBuilder.FileAppender
| Modifier and Type | Class and Description |
|---|---|
protected class |
LoggingBuilder.RollingFileAppender.CountingQuietWriter |
Appender.AppenderPipeline, Appender.AppenderPipelineImpl| Modifier and Type | Field and Description |
|---|---|
protected int |
maxBackupIndex |
protected long |
maxFileSize |
bufferedIO, bufferSize, fileAppend, fileNameencoding, immediateFlush, qwclosed, CODE_CLOSE_FAILURE, CODE_FILE_OPEN_FAILURE, CODE_FLUSH_FAILURE, CODE_WRITE_FAILURE, layout, LINE_SEP, name| Constructor and Description |
|---|
RollingFileAppender() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxBackupIndex() |
long |
getMaximumFileSize() |
void |
rollOver() |
void |
setFile(String fileName,
boolean append,
boolean bufferedIO,
int bufferSize) |
void |
setMaxBackupIndex(int maxBackups) |
void |
setMaximumFileSize(long maxFileSize) |
protected void |
setQWForFiles(Writer writer) |
protected void |
subAppend(LoggingEvent event) |
activateOptions, closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFileappend, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, setEncoding, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeaderdoAppend, finalize, getLayout, getName, handleError, handleError, setLayout, setNamepublic int getMaxBackupIndex()
public long getMaximumFileSize()
public void rollOver()
public void setFile(String fileName, boolean append, boolean bufferedIO, int bufferSize) throws IOException
setFile in class LoggingBuilder.FileAppenderIOExceptionpublic void setMaxBackupIndex(int maxBackups)
public void setMaximumFileSize(long maxFileSize)
protected void setQWForFiles(Writer writer)
setQWForFiles in class LoggingBuilder.FileAppenderprotected void subAppend(LoggingEvent event)
subAppend in class LoggingBuilder.WriterAppenderCopyright © 2012–2023 Apache Software Foundation. All rights reserved.