You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2026/03/24 09:37:41 UTC

(camel) branch camel-23237-log-format created (now 97fdeee0a156)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a change to branch camel-23237-log-format
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 97fdeee0a156 CAMEL-23237: camel-jbang - Compact log format for narrower terminals

This branch includes the following new commits:

     new 97fdeee0a156 CAMEL-23237: camel-jbang - Compact log format for narrower terminals

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: CAMEL-23237: camel-jbang - Compact log format for narrower terminals

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch camel-23237-log-format
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 97fdeee0a156438a968b3278031824154ca8bb62
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Mar 24 10:37:24 2026 +0100

    CAMEL-23237: camel-jbang - Compact log format for narrower terminals
    
    Reduce logger name padding from 40/35 to 25 chars and thread name
    from 15 to 10 chars across all log4j2 property files. This saves
    ~20 characters per log line, leaving more room for the actual log
    message on narrow terminals.
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
 .../camel-jbang-core/src/main/resources/log4j2-background.properties  | 2 +-
 .../camel-jbang-core/src/main/resources/log4j2-export.properties      | 2 +-
 .../camel-jbang-core/src/main/resources/log4j2-main.properties        | 2 +-
 .../camel-jbang-core/src/main/resources/log4j2-no-color.properties    | 2 +-
 .../camel-jbang-core/src/main/resources/log4j2-script.properties      | 2 +-
 dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties | 4 ++--
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-background.properties b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-background.properties
index 691a765a7c4a..726c529e8925 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-background.properties
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-background.properties
@@ -23,7 +23,7 @@ appender.file.createOnDemand = true
 appender.file.append = false
 appender.file.layout.type = PatternLayout
 # logging style that is similar to spring boot
-appender.file.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highlight{%5p} %style{%pid}{Magenta} %style{---}{Dim} %style{[%15.15t]}{Dim} %style{%-40.40c}{Cyan} %style{:}{Dim} %m%n
+appender.file.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highlight{%5p} %style{%pid}{Magenta} %style{---}{Dim} %style{[%10.10t]}{Dim} %style{%-25.25c}{Cyan} %style{:}{Dim} %m%n
 
 # log to file
 rootLogger = INFO,file
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-export.properties b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-export.properties
index 45229e36eddd..590cb37a37cf 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-export.properties
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-export.properties
@@ -23,7 +23,7 @@ appender.file.append = false
 
 appender.file.layout.type = PatternLayout
 # logging style that is similar to spring boot (no color)
-appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p %pid --- [%15.15t] %-35.35c : %m%n
+appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p %pid --- [%10.10t] %-25.25c : %m%n
 
 rootLogger.level = INFO
 rootLogger.appenderRef.out.ref = file
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-main.properties b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-main.properties
index c755a6b14edc..503f4b987f02 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-main.properties
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-main.properties
@@ -20,7 +20,7 @@ appender.stdout.type = Console
 appender.stdout.name = out
 appender.stdout.layout.type = PatternLayout
 # logging style that is similar to spring boot
-appender.stdout.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highlight{%5p} %style{%pid}{Magenta} %style{---}{Dim} %style{[%15.15t]}{Dim} %style{%-40.40c}{Cyan} %style{:}{Dim} %m%n
+appender.stdout.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highlight{%5p} %style{%pid}{Magenta} %style{---}{Dim} %style{[%10.10t]}{Dim} %style{%-25.25c}{Cyan} %style{:}{Dim} %m%n
 
 # log to console
 rootLogger = INFO,out
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-no-color.properties b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-no-color.properties
index 6dcdec667d34..4b47c4196b36 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-no-color.properties
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-no-color.properties
@@ -20,7 +20,7 @@ appender.stdout.name = out
 appender.stdout.layout.type = PatternLayout
 
 # logging style that is similar to spring boot (no color)
-appender.stdout.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p %pid --- [%15.15t] %-35.35c : %m%n
+appender.stdout.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p %pid --- [%10.10t] %-25.25c : %m%n
 
 rootLogger.level = INFO
 rootLogger.appenderRef.out.ref = out
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-script.properties b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-script.properties
index fd5b03f612cb..3f8dd934906b 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-script.properties
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-script.properties
@@ -23,7 +23,7 @@ appender.file.append = false
 
 appender.file.layout.type = PatternLayout
 # logging style that is similar to spring boot (no color)
-appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p %pid --- [%15.15t] %-35.35c : %m%n
+appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p %pid --- [%10.10t] %-25.25c : %m%n
 
 rootLogger.level = INFO
 rootLogger.appenderRef.out.ref = file
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties
index db1a27651804..a21d69f987aa 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties
@@ -20,7 +20,7 @@ appender.stdout.type = Console
 appender.stdout.name = out
 appender.stdout.layout.type = PatternLayout
 # logging style that is similar to spring boot
-appender.stdout.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highlight{%5p} %style{%pid}{Magenta} %style{---}{Dim} %style{[%15.15t]}{Dim} %style{%-40.40c}{Cyan} %style{:}{Dim} %m%n
+appender.stdout.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highlight{%5p} %style{%pid}{Magenta} %style{---}{Dim} %style{[%10.10t]}{Dim} %style{%-25.25c}{Cyan} %style{:}{Dim} %m%n
 
 # file logger
 appender.file.type = File
@@ -30,7 +30,7 @@ appender.file.createOnDemand = true
 appender.file.append = false
 appender.file.layout.type = PatternLayout
 # logging style that is similar to spring boot
-appender.file.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highlight{%5p} %style{%pid}{Magenta} %style{---}{Dim} %style{[%15.15t]}{Dim} %style{%-40.40c}{Cyan} %style{:}{Dim} %m%n
+appender.file.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highlight{%5p} %style{%pid}{Magenta} %style{---}{Dim} %style{[%10.10t]}{Dim} %style{%-25.25c}{Cyan} %style{:}{Dim} %m%n
 
 # log to console and file
 rootLogger = INFO,out,file