|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RollingLogs
Rolling logs consist of a current log and a set of previous logs. The implementation should support a single appender and multiple readers.
| Nested Class Summary | |
|---|---|
static interface |
RollingLogs.Appender
To append text to the logs. |
static interface |
RollingLogs.LineIterator
To iterate the lines of the logs. |
| Method Summary | |
|---|---|
RollingLogs.Appender |
appender()
|
RollingLogs.LineIterator |
iterator(boolean skipPrevious)
Create an iterator to iterate the lines in the logs. |
boolean |
roll()
Roll current to previous. |
| Method Detail |
|---|
RollingLogs.LineIterator iterator(boolean skipPrevious)
throws IOException
skipPrevious - Should it skip reading the previous log?
IOExceptionRollingLogs.Appender appender()
boolean roll()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||