| java.lang.Object org.apache.log.output.io.rotate.RotateStrategyByTime
Method Summary | |
public boolean | isRotationNeeded(String data, File file) Check if now a log rotation is neccessary. | public void | reset() reset interval history counters. |
RotateStrategyByTime | public RotateStrategyByTime()(Code) | | Rotate logs by time.
By default do log rotation every 24 hours
|
RotateStrategyByTime | public RotateStrategyByTime(long timeInterval)(Code) | | Rotate logs by time.
Parameters: timeInterval - rotate before time-interval [ms] has expired |
isRotationNeeded | public boolean isRotationNeeded(String data, File file)(Code) | | Check if now a log rotation is neccessary.
If
(current_time - m_startingTime) / m_timeInterval > m_currentRotation
rotation is needed.
Parameters: data - the last message written to the log system Parameters: file - not used boolean return true if log rotation is neccessary, else false |
reset | public void reset()(Code) | | reset interval history counters.
|
|
|