Logging ApacheCamel:如何以从(文件:).to(到:)的语法记录进程
需要在configure方法中记录源、端点和事务Logging ApacheCamel:如何以从(文件:).to(到:)的语法记录进程,logging,apache-camel,Logging,Apache Camel,需要在configure方法中记录源、端点和事务 main(String args[]){ CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() { public void configure() { from("file:location).to("file:location")}}); context.start } 你可以用追踪器 此外,Camel
main(String args[]){
CamelContext context = new DefaultCamelContext();
context.addRoutes(new RouteBuilder() {
public void configure() {
from("file:location).to("file:location")}});
context.start
}
你可以用追踪器
此外,Camel使用常规日志记录,因此您可以在org.apache.Camel等上启用调试级别,并获得大量详细日志记录
但是对于最终用户的日志记录,跟踪程序更合适,因为它记录了路由中的步骤。Camel应该已经通过调试语句打印了一些信息。您是否尝试过查看日志组件或使用处理器?谢谢Claus Ibsen,这很有帮助