Class LogLineParser

java.lang.Object
io.goobi.viewer.model.log.LogLineParser

public final class LogLineParser extends Object
Parses raw log4j2 output into structured LogLine objects. Supports both formats: New: %-5level %d{...} [%thread] %location - %msg Old: %-5level %d{...} [%thread] %location (message on next line) Stacktrace/continuation lines are appended to the preceding entry's message.
  • Method Details

    • parse

      public static List<LogLine> parse(String raw)
    • isHeaderLine

      public static boolean isHeaderLine(String line)
      Returns true if the given line matches a log entry header. Used by the stateful tailer to detect entry boundaries.