public class LogTreeNode extends BeginLogEvent implements Iterable<LogEvent>, Serializable
Modifier and Type | Field and Description |
---|---|
protected ConcurrentLinkedQueue<LogEvent> |
children
The children of this log event.
|
MARKER_BEGIN, MARKER_END
Constructor and Description |
---|
LogTreeNode(LogEvent logEvent) |
Modifier and Type | Method and Description |
---|---|
List<LogEvent> |
getLogs(LogLevel level,
boolean recurse)
Filter logs of a specific level.
|
List<LogEvent> |
getLogsFrom(LogLevel level,
boolean recurse)
Filter logs of a specific level.
|
Iterator<LogEvent> |
iterator() |
Iterator<LogEvent> |
iterator(boolean recurse) |
int |
size(boolean recurse)
The number of logs.
|
equals, getLevel, getTimeStamp, hashCode, log, matches, toString
charAt, equals, getArgumentArray, getFormattedMessage, getMarker, getMessage, getMessageElements, getThrowable, getTranslationKey, length, subSequence
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
chars, codePoints
protected ConcurrentLinkedQueue<LogEvent> children
public LogTreeNode(LogEvent logEvent)
logEvent
- the log event to copypublic Iterator<LogEvent> iterator(boolean recurse)
recurse
- if true navigate through the whole tree, otherwise only the first levelpublic int size(boolean recurse)
recurse
- if true navigate through the whole tree, otherwise only the first levelpublic List<LogEvent> getLogs(LogLevel level, boolean recurse)
level
- the level of the logs to returnrecurse
- if one of the LogEvent
is a node look at its children too etc.Copyright © 2004–2022 XWiki. All rights reserved.