public class LogList extends LogListener implements Iterable<LogItem>
LogListener that stores log items in a list.| Constructor and Description |
|---|
LogList() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<LogItem> |
iterator()
|
void |
receive(Instant time,
Logger logger,
Level level,
String text,
Throwable throwable)
Receive a log event and store a new
LogItem in the list. |
List<LogItem> |
toList()
Get a copy of the list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void receive(Instant time, Logger logger, Level level, String text, Throwable throwable)
LogItem in the list.receive in class LogListenertime - the time of the eventlogger - the logger objectlevel - the logging leveltext - the text of the messagethrowable - a Throwable, if providedCopyright © 2021. All rights reserved.