davsclaus opened a new pull request, #29426: URL: https://github.com/apache/camel/pull/29426
In the Log tab, *c* now goes through three views instead of compact on/off: | View | Heading | Repeated lines | |---|---|---| | compact (the default, as before) | time, level, short logger | collapsed: `Hello World (x17)` | | wide | the line as logged (date, pid, thread, logger) | one by one, the old-fashioned log | | wide, collapsed | the line as logged | collapsed | Two things made the old toggle fall short, as seen with the timer-to-log example: - the same line in a row was folded when the file was read (`addFolded`), so there was no way to see the lines one by one. The tab now keeps the lines read one by one, and the collapsed views fold copies when they are shown (`LogTab.fold`); - compact leaves out the date, pid and thread, and shortens the logger: a view can now have the full line and still collapse. Changing the view keeps the line at the top of the screen there (`LogEntry.line`, `shownIndexOf`), also when loading older lines above. The buffer now holds 10000 lines read (it was 3000 folded entries), as a storm of one line is no longer stored as one entry. The footer says `c view [compact]`, `[wide]` or `[wide, collapsed]`. Docs: a paragraph in `camel-jbang-tui-observe.adoc`. Tests: `LogTabRenderTest` (the three views, the line at the top), the whole camel-jbang-plugin-tui module (2400 tests). _Claude Code on behalf of Claus Ibsen_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
