org.apache.log.output.io.rotate
public class RotateStrategyBySize extends Object implements RotateStrategy
Field Summary | |
---|---|
long | m_currentSize |
long | m_maxSize |
Constructor Summary | |
---|---|
RotateStrategyBySize()
Rotate logs by size.
| |
RotateStrategyBySize(long maxSize)
Rotate logs by size.
|
Method Summary | |
---|---|
boolean | isRotationNeeded(String data, File file)
Check if now a log rotation is neccessary.
|
void | reset()
Reset log size written so far. |
Parameters: maxSize rotate before writing maxSize [byte] of messages
Parameters: data the message about to be written to the log system file not used
Returns: boolean return true if log rotation is neccessary, else false