|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.util.LogConsoleBuffer
public class LogConsoleBuffer
Offer a glimpse into the last few console messages generated. Maintains two buffers, one normal and one critical.
| Constructor Summary | |
|---|---|
LogConsoleBuffer(I2PAppContext context)
Uses default limit from LogManager. |
|
LogConsoleBuffer(int limit)
|
|
| Method Summary | |
|---|---|
(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... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
void add(String msg)
void addCritical(String msg)
public List<String> getMostRecentMessages()
public List<String> getMostRecentCriticalMessages()
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||