This commit is contained in:
parent
2e2ac76b45
commit
ffb5023d04
@ -13,7 +13,6 @@ public class FileCopierCamelRoute extends RouteBuilder {
|
|||||||
public void configure() {
|
public void configure() {
|
||||||
from("file:data/inbox?noop=true").log("We got an incoming file ${file:name} containing: ${body}")
|
from("file:data/inbox?noop=true").log("We got an incoming file ${file:name} containing: ${body}")
|
||||||
.to("log:com.baeldung.apachecamellogging?level=INFO")
|
.to("log:com.baeldung.apachecamellogging?level=INFO")
|
||||||
|
|
||||||
.process(process -> {
|
.process(process -> {
|
||||||
LOGGER.info("We are passing the message to a FileProcesor bean to capitalize the message body");
|
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("file:data/outbox")
|
||||||
.to("log:com.baeldung.apachecamellogging?showBodyType=false&maxChars=20")
|
.to("log:com.baeldung.apachecamellogging?showBodyType=false&maxChars=20")
|
||||||
.log(LoggingLevel.DEBUG, "Output Process", "The Process ${id}")
|
.log(LoggingLevel.DEBUG, "Output Process", "The Process ${id}")
|
||||||
.log("Successlly transfer file: ${file:name}");
|
.log("Successfully transfer file: ${file:name}");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user