Class LogTreeNode

    • Constructor Detail

      • LogTreeNode

        public LogTreeNode​(LogEvent logEvent)
        Parameters:
        logEvent - the log event to copy
    • Method Detail

      • iterator

        public Iterator<LogEvent> iterator​(boolean recurse)
        Parameters:
        recurse - if true navigate through the whole tree, otherwise only the first level
        Returns:
        an iterator over a tree of logs
      • size

        public int size​(boolean recurse)
        The number of logs.
        Parameters:
        recurse - if true navigate through the whole tree, otherwise only the first level
        Returns:
        the number of log events
      • getLogs

        public List<LogEvent> getLogs​(LogLevel level,
                                      boolean recurse)
        Filter logs of a specific level.
        Parameters:
        level - the level of the logs to return
        recurse - if one of the LogEvent is a node look at its children too etc.
        Returns:
        the filtered logs
      • getLogsFrom

        public List<LogEvent> getLogsFrom​(LogLevel level,
                                          boolean recurse)
        Filter logs of a specific level.
        Parameters:
        level - the level of the logs to return
        recurse - if one of the LogEvent is a node look at its children too etc.
        Returns:
        the filtered logs