michaelin007 2024-03-28 05:37:03 +00:00
parent 2e2ac76b45
commit ffb5023d04
1 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ public class FileCopierCamelRoute extends RouteBuilder {
public void configure() {
from("file:data/inbox?noop=true").log("We got an incoming file ${file:name} containing: ${body}")
.to("log:com.baeldung.apachecamellogging?level=INFO")
.process(process -> {
LOGGER.info("We are passing the message to a FileProcesor bean to capitalize the message body");
})
@ -21,6 +20,6 @@ public class FileCopierCamelRoute extends RouteBuilder {
.to("file:data/outbox")
.to("log:com.baeldung.apachecamellogging?showBodyType=false&maxChars=20")
.log(LoggingLevel.DEBUG, "Output Process", "The Process ${id}")
.log("Successlly transfer file: ${file:name}");
.log("Successfully transfer file: ${file:name}");
}
}