|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log.output.io.rotate.RotateStrategyBySize
Rotation stragety based on size written to log file.
Constructor Summary | |
RotateStrategyBySize()
Rotate logs by size. |
|
RotateStrategyBySize(long maxSize)
Rotate logs by size. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RotateStrategyBySize()
public RotateStrategyBySize(long maxSize)
max_size
- rotate after writing max_size [byte] of messagesMethod Detail |
public void reset()
reset
in interface RotateStrategy
public boolean isRotationNeeded(java.lang.String data, java.io.File file)
isRotationNeeded
in interface RotateStrategy
data
- the last message written to the log system
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |