org.apache.log.output.io.rotate
public class RotateStrategyBySize extends java.lang.Object implements RotateStrategy
Constructor and Description |
---|
RotateStrategyBySize()
Rotate logs by size.
|
RotateStrategyBySize(long maxSize)
Rotate logs by size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRotationNeeded(java.lang.String data,
java.io.File file)
Check if now a log rotation is neccessary.
|
void |
reset()
Reset log size written so far.
|
public RotateStrategyBySize()
public RotateStrategyBySize(long maxSize)
maxSize
- rotate before writing maxSize [byte] of messagespublic void reset()
reset
in interface RotateStrategy
public boolean isRotationNeeded(java.lang.String data, java.io.File file)
isRotationNeeded
in interface RotateStrategy
data
- the message about to be written to the log systemfile
- not used