diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelLogAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelLogAction.java index 7a2a518e82e40..2abf9f984373d 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelLogAction.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelLogAction.java @@ -446,7 +446,9 @@ private String alignTimestamp(String line) { ts = ts.replace('T', ' '); int dot = ts.indexOf('.'); if (dot != -1) { - ts = ts.substring(0, dot + 4); + int pos1 = dot + 3; // skip these 6 chars + int pos2 = dot + 9; + ts = ts.substring(0, pos1) + ts.substring(pos2); } String after = StringHelper.after(line, " "); return ts + " " + after; 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 6dd65a811f351..691a765a7c4a6 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{%-35.35c}{Cyan} : %m%n +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 # log to file rootLogger = INFO,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 bfb1414eaffeb..db1a27651804e 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{%-35.35c}{Cyan} : %m%n +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 # 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{%-35.35c}{Cyan} : %m%n +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 # log to console and file rootLogger = INFO,out,file diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/spring-boot-logback.xml b/dsl/camel-jbang/camel-jbang-core/src/main/resources/spring-boot-logback.xml index 07ec3874841cf..8e29eaa77b5c5 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/spring-boot-logback.xml +++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/spring-boot-logback.xml @@ -19,11 +19,12 @@ --> - - + + + - - + + \ No newline at end of file