| java.lang.Object org.jivesoftware.util.log.output.io.rotate.RotateStrategyBySize
Method Summary | |
public boolean | isRotationNeeded(String data, File file) Check if now a log rotation is neccessary. | public void | reset() reset log size written so far. |
RotateStrategyBySize | public RotateStrategyBySize()(Code) | | Rotate logs by size.
By default do log rotation after writing approx. 1MB of messages
|
RotateStrategyBySize | public RotateStrategyBySize(long maxSize)(Code) | | Rotate logs by size.
Parameters: maxSize - rotate after writing max_size [byte] of messages |
isRotationNeeded | public boolean isRotationNeeded(String data, File file)(Code) | | Check if now a log rotation is neccessary.
Parameters: data - the last message written to the log system boolean return true if log rotation is neccessary, else false |
reset | public void reset()(Code) | | reset log size written so far.
|
|
|