Commit graph

8 commits

Author SHA1 Message Date
desvaters
dad7fe7721 Fix WARN/ERROR lines not being colored in the Other Logs tab
guessLevel() required the log line's timestamp bracket to contain only
digits and colons, so it never matched real log4j output that includes
a full date and milliseconds (e.g. "[23Jul2026 18:12:07.877] [main/WARN]
[...]"). Lines fell through to Unknown level and were left uncolored,
even with "Color lines" enabled. The live "Minecraft Log" console tab
wasn't affected since it gets levels from log4j's XML event stream
instead of this text heuristic.

Signed-off-by: desvaters <71886240+desvaters@users.noreply.github.com>
2026-07-27 15:08:28 +02:00
Rachel Powers
d1b6d7c402
chore: Re-simplify IndexVersionType and MessageLevel with c++20
This sets our compiler requirements to gcc 11 and clang 13. If we
forgo the use of `using enum` we can drop to gcc 10 and clang 10 but
that means using `MessageLevel::Enum::Unknown` for direct enum access

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-12-11 09:59:33 -07:00
TheKodeToad
4f5e348b66
Merge branch 'develop' into fix-log-level-bleed
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-08 09:21:27 +00:00
TheKodeToad
fd3ae85d45
Simplify MessageLevel::Enum -> MessageLevel
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-07 13:15:22 +00:00
TheKodeToad
c018b60816
Only continue log level if line starts with whitespace; reintroduce exception detection
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-05 12:38:21 +00:00
TheKodeToad
d626604b5e
Fix issues with log level handling and clean up code
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-10-25 14:20:15 +01:00
Rachel Powers
21570a03fb
feat(xml-logs): finish tests
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-04-19 13:02:30 -07:00
Rachel Powers
bfdc77665d
feat(xml-logs): add tests
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-04-19 12:54:45 -07:00