org.apache.log.output.io.rotate
public class RotateStrategyBySize extends Object implements RotateStrategy
Modifier and Type | Field and Description |
---|---|
private long |
m_currentSize |
private long |
m_maxSize |
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 © 2003-2004 The Apache Software Foundation. All Rights Reserved.