FixedWindowRollingPolicy renames files
according to a fixed window algorithm.
For more information about this policy, please refer to the online manual at
http://logback.qos.ch/manual/appenders.html#FixedWindowRollingPolicy
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Compressor | |
| pack-priv static final String | |
| private static int | MAX_WINDOW_SIZE
It's almost always a bad idea to have a large window size, say over 20. |
| pack-priv int | |
| pack-priv int | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv RenameUtil | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getActiveFileName()
Implements ch. |
| public int | |
| protected int | |
| public int | |
| public void | rollover()
Implements ch. |
| public void | |
| public void | |
| public void | start()
Overrides ch. Implements ch. |
| private String |
| compressor | back to summary |
|---|---|
| pack-priv Compressor compressor | |
| FNP_NOT_SET | back to summary |
|---|---|
| pack-priv static final String FNP_NOT_SET | |
| MAX_WINDOW_SIZE | back to summary |
|---|---|
| private static int MAX_WINDOW_SIZE It's almost always a bad idea to have a large window size, say over 20. | |
| maxIndex | back to summary |
|---|---|
| pack-priv int maxIndex | |
| minIndex | back to summary |
|---|---|
| pack-priv int minIndex | |
| PRUDENT_MODE_UNSUPPORTED | back to summary |
|---|---|
| pack-priv static final String PRUDENT_MODE_UNSUPPORTED | |
| SEE_PARENT_FN_NOT_SET | back to summary |
|---|---|
| pack-priv static final String SEE_PARENT_FN_NOT_SET | |
| util | back to summary |
|---|---|
| pack-priv RenameUtil util | |
| ZIP_ENTRY_DATE_PATTERN | back to summary |
|---|---|
| public static final String ZIP_ENTRY_DATE_PATTERN | |
| FixedWindowRollingPolicy | back to summary |
|---|---|
| public FixedWindowRollingPolicy() | |
| getActiveFileName | back to summary |
|---|---|
| public String getActiveFileName() Implements ch. Return the value of the parent's RawFile property. | |
| getMaxIndex | back to summary |
|---|---|
| public int getMaxIndex() | |
| getMaxWindowSize | back to summary |
|---|---|
| protected int getMaxWindowSize() Subclasses can override this method to increase the max window size, if required. This is to address LOGBACK-266. | |
| getMinIndex | back to summary |
|---|---|
| public int getMinIndex() | |
| rollover | back to summary |
|---|---|
| public void rollover() throws RolloverFailure Implements ch. Doc from ch. Rolls over log files according to implementation policy.
This method is invoked by
| |
| setMaxIndex | back to summary |
|---|---|
| public void setMaxIndex(int maxIndex) | |
| setMinIndex | back to summary |
|---|---|
| public void setMinIndex(int minIndex) | |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch. | |
| transformFileNamePatternFromInt2Date | back to summary |
|---|---|
| private String transformFileNamePatternFromInt2Date(String fileNamePatternStr) | |