Repository navigation
v0.12.31
v0.12.31 — Spring Boot, Logback, Python and other plaintext logs get their level read
logscry read a plaintext log level only when it stood at the very start of the line. Most logging frameworks print their own timestamp, process id or thread first, so the level of a line such as Spring Boot's default 2026-01-15 10:23:45.123 ERROR 12345 --- [main] com.example.App : boom was never seen. On stdin, a subprocess, Docker, and journald's default priority, such a line got no level: a new error in it scored like any new INFO line and did not interrupt. Present since v0.1.0.
Found while working on #24.
What changed:
- When a line does not start with a level, logscry now walks past the logger's own header (timestamps, pids, threads, bracketed columns, source positions, a logger name column) and reads the first level column it reaches.
- Read now: Spring Boot's console layout, Logback and Log4j2 defaults, Python's common formats, Celery, gunicorn, loguru, Go's
logandslog, Rails, nginx, PostgreSQL and Kubernetes' klog. - The first ordinary word ends the walk, so a level mentioned in prose (
retrying after ERROR from upstream) is not read, and a line that merely starts with a level word (PANIC button pressed) needs a delimiter after it to count. - Templates are unchanged: the message stays the whole line.
Measured:
- 10 real journald boots, replayed: 113 lines gain a level (62 WARN, 51 INFO, none error-class); no template changes; escalations 59 before and after, every export byte-identical.
- 400 benign INFO templates still produce no escalation.
Costs, pinned in the tests:
- A level word right after header-like material is read as a level, e.g.
42 ERROR rows skipped.
Install: download the binary for your OS from the assets below, or go install github.com/maxie7/logscry/cmd/logscry@latest.
Known limitations:
- Chromium-family lines keep their in-bracket level unread on purpose: on a desktop it is browser chatter, and reading it took ten boots from 59 to 141 escalations.
- ANSI-coloured lines, and level words outside the known vocabulary (JUL
SEVERE, nginxalert, .NETfail), are not read yet. - The full list is in the README's Known limitations.
Tracked as #31.