public class ExternallyRolledFileAppender extends RollingFileAppender
This method of triggering roll over has the advantage of being operating system independent, fast and reliable.
A simple application Roller
is provided to initiate the
roll over.
Note that the initiator is not authenticated. Anyone can trigger a rollover. In production environments, it is recommended that you add some form of protection to prevent undesired rollovers.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
OK
The string constant sent to acknowledge a roll over.
|
static java.lang.String |
ROLL_OVER
The string constant sent to initiate a roll over.
|
maxBackupIndex, maxFileSize
bufferedIO, bufferSize, fileAppend, fileName
encoding, immediateFlush, qw
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
构造器和说明 |
---|
ExternallyRolledFileAppender()
The default constructor does nothing but calls its super-class
constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
activateOptions()
Start listening on the port specified by a preceding call to
setPort(int) . |
int |
getPort()
Returns value of the Port option.
|
void |
setPort(int port)
The Port [roperty is used for setting the port for
listening to external roll over messages.
|
getMaxBackupIndex, getMaximumFileSize, rollOver, setFile, setMaxBackupIndex, setMaxFileSize, setMaximumFileSize, setQWForFiles, subAppend
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold
public static final java.lang.String ROLL_OVER
public static final java.lang.String OK
public ExternallyRolledFileAppender()
public void setPort(int port)
public int getPort()
public void activateOptions()
setPort(int)
.activateOptions
在接口中 OptionHandler
activateOptions
在类中 FileAppender