You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/camel-core-engine/src/main/docs/modules/eips/pages/message-history.adoc
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -348,3 +348,34 @@ for (MessageHistory history : list) {
348
348
System.out.println("Routed at id: " + history.getNode().getId());
349
349
}
350
350
----
351
+
352
+
== Configuring MessageHistory format
353
+
354
+
The Message History format in Camel is controlled by `Java String.format` patterns stored as global options on the CamelContext.
355
+
356
+
The defaults are defined in https://github.com/apache/camel/blob/main/core/camel-support/src/main/java/org/apache/camel/support/MessageHelper.java[`MessageHelper.java`]:
357
+
358
+
[source,java]
359
+
----
360
+
private static final String MESSAGE_HISTORY_HEADER = "%-40s %-30s %-50s %-12s";
361
+
private static final String MESSAGE_HISTORY_OUTPUT = "%-40.40s %-30.30s %-50.50s %12.12s";
362
+
----
363
+
364
+
You can customize it using `application.properties`:
0 commit comments