How can I log a header value in camel using spring DSL

后端 未结 4 1061
鱼传尺愫
鱼传尺愫 2021-02-14 04:20

This seems like it should be simple, pardon the pun. I\'m trying to log a header in camel within a spring DSL route. I\'ve seen the answer for Java DSL but I\'ve been searching

4条回答
  •  轮回少年
    2021-02-14 04:57

    In JAVA DSL

    from("logger")
    .log(LoggingLevel.INFO, "${in.headers.CamelFileName}")
    .end
    

    LoggingLevel is from org.apache.camel.LoggingLevel

提交回复
热议问题