RotateStrategy
public class RotateStrategyBySize extends java.lang.Object implements RotateStrategy
Modifier and Type | Field | Description |
---|---|---|
private long |
m_currentSize |
|
private long |
m_maxSize |
Constructor | Description |
---|---|
RotateStrategyBySize() |
Rotate logs by size.
|
RotateStrategyBySize(long maxSize) |
Rotate logs by size.
|
Modifier and Type | Method | 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 usedCopyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.