RollingFileAppender extends FileAppender to back up the
log files depending on RollingPolicy and TriggeringPolicy.
For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#RollingFileAppender
| Modifier and Type | Field and Description |
|---|---|
| private static String | |
| pack-priv File | |
| private static String | |
| private static String | |
| private static String | |
| pack-priv RollingPolicy | |
| pack-priv TriggeringPolicy | |
| pack-priv Lock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private boolean | |
| private boolean | |
| public String | getFile()
Overrides ch. |
| public RollingPolicy | |
| public TriggeringPolicy | |
| private boolean | |
| public void | |
| public void | setFile(String file)
Overrides ch. |
| public void | |
| public void | |
| public void | start()
Overrides ch. Implements ch. null, then openFile
is called with the values of File and Append properties.
|
| public void | stop()
Overrides ch. Implements ch. |
| protected void | subAppend(E event)
Overrides ch. |
| COLLISION_URL | back to summary |
|---|---|
| private static String COLLISION_URL | |
| currentlyActiveFile | back to summary |
|---|---|
| pack-priv File currentlyActiveFile | |
| RFA_LATE_FILE_URL | back to summary |
|---|---|
| private static String RFA_LATE_FILE_URL | |
| RFA_NO_RP_URL | back to summary |
|---|---|
| private static String RFA_NO_RP_URL | |
| RFA_NO_TP_URL | back to summary |
|---|---|
| private static String RFA_NO_TP_URL | |
| rollingPolicy | back to summary |
|---|---|
| pack-priv RollingPolicy rollingPolicy | |
| triggeringPolicy | back to summary |
|---|---|
| pack-priv TriggeringPolicy<E> triggeringPolicy | |
| triggeringPolicyLock | back to summary |
|---|---|
| pack-priv Lock triggeringPolicyLock | |
| RollingFileAppender | back to summary |
|---|---|
| public RollingFileAppender() | |
| attemptOpenFile | back to summary |
|---|---|
| private void attemptOpenFile() | |
| attemptRollover | back to summary |
|---|---|
| private void attemptRollover() | |
| checkForCollisionsInPreviousRollingFileAppenders | back to summary |
|---|---|
| private boolean checkForCollisionsInPreviousRollingFileAppenders() | |
| checkForFileAndPatternCollisions | back to summary |
|---|---|
| private boolean checkForFileAndPatternCollisions() | |
| getFile | back to summary |
|---|---|
| public String getFile() Overrides ch. Doc from ch. Returns the value of the File property. This method may be overridden by derived classes.
| |
| getRollingPolicy | back to summary |
|---|---|
| public RollingPolicy getRollingPolicy() | |
| getTriggeringPolicy | back to summary |
|---|---|
| public TriggeringPolicy | |
| innerCheckForFileNamePatternCollisionInPreviousRFA | back to summary |
|---|---|
| private boolean innerCheckForFileNamePatternCollisionInPreviousRFA(FileNamePattern fileNamePattern) | |
| rollover | back to summary |
|---|---|
| public void rollover() Implemented by delegating most of the rollover work to a rolling policy. | |
| setFile | back to summary |
|---|---|
| public void setFile(String file) Overrides ch. Doc from ch. The File property takes a string value which should be the name of the file to append to.
| |
| setRollingPolicy | back to summary |
|---|---|
| public void setRollingPolicy(RollingPolicy policy) Sets the rolling policy. In case the 'policy' argument also implements
| |
| setTriggeringPolicy | back to summary |
|---|---|
| public void setTriggeringPolicy(TriggeringPolicy<E> policy) | |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch. Doc from ch. If the value of File is not | |
| stop | back to summary |
|---|---|
| public void stop() Overrides ch. Implements ch. Doc from ch. Stop this appender instance. The underlying stream or writer is also closed. Stopped appenders cannot be reused.
| |
| subAppend | back to summary |
|---|---|
| protected void subAppend(E event) Overrides ch. This method differentiates RollingFileAppender from its super class.
| |