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()
Clear all log entries from the buffer.
|
UIMessages |
getCriticalUIMessages()
Retrieve the currently buffered critical messages, earlier values were generated...
|
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...
|
UIMessages |
getUIMessages()
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 void clear()
public UIMessages getCriticalUIMessages()
public List<String> getMostRecentCriticalMessages()
public List<String> getMostRecentMessages()
public UIMessages getUIMessages()