public class LogList extends LogListener implements Iterable<LogItem>
LogListener that stores log items in a list.| Constructor and Description |
|---|
LogList()
Construct a
LogList with no filtering. |
LogList(Class<?> loggerClass)
Construct a
LogList for a specific Logger, identified by class. |
LogList(String loggerName)
Construct a
LogList for a specific Logger, identified by name. |
| Modifier and Type | Method and Description |
|---|---|
Iterator<LogItem> |
iterator()
|
void |
receive(long time,
net.pwall.log.Logger logger,
net.pwall.log.Level level,
Object message,
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 LogList(String loggerName)
LogList for a specific Logger, identified by name.loggerName - the Logger namepublic LogList(Class<?> loggerClass)
LogList for a specific Logger, identified by class.loggerClass - the Logger classpublic LogList()
LogList with no filtering.public void receive(long time,
net.pwall.log.Logger logger,
net.pwall.log.Level level,
Object message,
Throwable throwable)
LogItem in the list.receive in class LogListenertime - the time of the eventlogger - the logger objectlevel - the logging levelmessage - the messagethrowable - a Throwable, if providedCopyright © 2024. All rights reserved.