public class RotateStrategyBySize extends 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(String data,
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(String data, File file)
isRotationNeeded
in interface RotateStrategy
data
- the message about to be written to the log systemfile
- not usedCopyright © 1997–2018. All rights reserved.