Skip to content

feat(c8s): filter logs by level with Ctrl+z - #130

Merged
robertazzopardi merged 1 commit into
mainfrom
feat/c8s-log-level-filter
Nov 14, 2026
Merged

robertazzopardi merged 1 commit into
mainfrom
feat/c8s-log-level-filter

Conversation

@robertazzopardi

Copy link
Copy Markdown
Owner

Closes #104.

Ctrl+z in the log view cycles all → warn+ → error+. The active level shows in the log title and the hotkey bar.

  • A line's level is its first level word, case-insensitive (INFO, WARN, error, fatal, panic, crit, …). Works for plain, [debug] and JSON "level":"error" formats.
  • Lines without a level word (stack traces, wrapped messages) inherit the previous line's level, so tracebacks stay with their ERROR line.
  • Applied before dedup and / search; persists across containers like dedup.
  • Ctrl+z is handled in code like Ctrl+u/Ctrl+d, with a display-only bar entry, so it isn't remappable.

Ctrl+z cycles the log view through all, warn+ and error+. Each line's
level is its first level word (INFO, WARN, error, fatal, ...); lines
without one, such as stack traces, inherit the previous line's level.
@robertazzopardi
robertazzopardi merged commit 627c386 into main Nov 14, 2026
7 checks passed
@robertazzopardi
robertazzopardi deleted the feat/c8s-log-level-filter branch November 14, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter logs in c8s by log level

1 participant