| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RotateStrategyByTime(final long
rotate before time-interval [ms] has expired timeInterval)Rotate logs by time. |
| 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 | |
| m_startingTime | back to summary |
|---|---|
| private long m_startingTime | |
| m_timeInterval | back to summary |
|---|---|
| private long m_timeInterval | |
| RotateStrategyByTime | back to summary |
|---|---|
| public RotateStrategyByTime() Rotate logs by time. By default do log rotation every 24 hours | |
| RotateStrategyByTime | back to summary |
|---|---|
| public RotateStrategyByTime(final long timeInterval) Rotate logs by time.
| |
| isRotationNeeded | back to summary |
|---|---|
| public boolean isRotationNeeded(final String data, final File file) Implements org. Check if now a log rotation is neccessary.
If
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. reset interval history counters. | |