gnodet commented on PR #22222: URL: https://github.com/apache/camel/pull/22222#issuecomment-4118952632
Closing this in favor of a better approach — _Claude Code on behalf of Guillaume Nodet_ Rather than statically shrinking the log4j2 patterns (which loses information in log files too), we'll instead: 1. **Dynamically build the console appender pattern** based on the actual terminal width at startup, so the logger/thread padding adapts to leave room for the message 2. **Keep the file appender with a full/structured format** (configurable via a switch, e.g. JSON or full-width text) so `camel log` can parse and reformat it 3. **Reformat log lines in `CamelLogAction`** when reading from the file, adapting to the current terminal width This gives the best of both worlds: compact console output that fits the terminal, and full log data preserved in files for later viewing/analysis. -- 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]
