public class LogConsoleBuffer extends Object
Constructor and Description |
---|
LogConsoleBuffer(I2PAppContext context)
Uses default limit from LogManager.
|
LogConsoleBuffer(int limit) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(String msg) |
(package private) void |
addCritical(String msg)
Only adds to the critical buffer, not to both.
|
void |
clear() |
List<String> |
getMostRecentCriticalMessages()
Retrieve the currently buffered critical messages, earlier values were generated...
|
List<String> |
getMostRecentMessages()
Retrieve the currently buffered messages, earlier values were generated...
|
public LogConsoleBuffer(I2PAppContext context)
context
- unusedpublic LogConsoleBuffer(int limit)
limit
- max size of each buffer
In theory the limit is configurable, but it isn't in the UI,
so set it at construction.void add(String msg)
void addCritical(String msg)
public List<String> getMostRecentMessages()
public List<String> getMostRecentCriticalMessages()
public void clear()