| Modifier and Type | Field and Description |
|---|---|
| private long | m_currentRotation
Time in ms that the current rotation started. |
| private static final long | TIME_24_HOURS
Constant that stores the the number of ms in 24 hours. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RotateStrategyByTimeOfDay(final long
Offset in milliseconds into the day to perform the log rotation. time)Rotate logs at specific time of day. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: boolean return true if log rotation is neccessary, else falsethe last message written to the log system data, final File not used file)Implements org. |
| public void | reset()
Implements org. |
| m_currentRotation | back to summary |
|---|---|
| private long m_currentRotation Time in ms that the current rotation started. | |
| TIME_24_HOURS | back to summary |
|---|---|
| private static final long TIME_24_HOURS Constant that stores the the number of ms in 24 hours. | |
| RotateStrategyByTimeOfDay | back to summary |
|---|---|
| public RotateStrategyByTimeOfDay() Rotate logs at specific time of day. By default do log rotation at 00:00:00 every day. | |
| RotateStrategyByTimeOfDay | back to summary |
|---|---|
| public RotateStrategyByTimeOfDay(final long time) Rotate logs at specific time of day.
| |
| isRotationNeeded | back to summary |
|---|---|
| public boolean isRotationNeeded(final String data, final File file) Implements org. Check if now a log rotation is neccessary. If the time of the current rotation + 24 hours is less than the current time. If not then a rotation is needed. | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. reset interval history counters. | |