Class LogSection


  • public final class LogSection
    extends ScrollSection
    A ScrollSection for logs: follows the tail by default and retains a bounded number of lines, dropping the oldest. Call maxLines(0) for unlimited.
    • Field Detail

      • DEFAULT_MAX_LINES

        public static final int DEFAULT_MAX_LINES
        Default retained line cap, to bound memory for long-running logs.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LogSection

        public LogSection()
        Creates a log section that follows the tail and retains DEFAULT_MAX_LINES lines.
    • Method Detail

      • append

        public LogSection append​(java.lang.String line)
        Appends a log line. Must be called on the UI thread (use App.post from others).
        Parameters:
        line - the line to append
        Returns:
        this LogSection for chaining