| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RotateStrategyBySize(final long
rotate before writing maxSize [byte] of messages maxSize)Rotate logs by size. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: boolean return true if log rotation is neccessary, else falsethe message about to be written to the log system data, final File not used file)Implements org. |
| public void | reset()
Implements org. |
| m_currentSize | back to summary |
|---|---|
| private long m_currentSize | |
| m_maxSize | back to summary |
|---|---|
| private long m_maxSize | |
| RotateStrategyBySize | back to summary |
|---|---|
| public RotateStrategyBySize() Rotate logs by size. By default do log rotation before writing approx. 1MB of messages | |
| RotateStrategyBySize | back to summary |
|---|---|
| public RotateStrategyBySize(final long maxSize) Rotate logs by size.
| |
| isRotationNeeded | back to summary |
|---|---|
| public boolean isRotationNeeded(final String data, final File file) Implements org. Check if now a log rotation is neccessary. | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Reset log size written so far. | |