Hi

This is not possible with log as it works with simple syntax only.
What you do is correct, or write your own processor / bean that does the
logging.

On Thu, Aug 4, 2022 at 8:36 AM Simon Martinelli <si...@martinelli.ch> wrote:

> Hi,
> How can I log an xpath?
>
> This is not possible:
> .log("xpath("//name")
>
> As a workaround I use:
> .setHeader("xpath", xpath("//name"))
> .log(${headers.xpath}")
>
> But this doesn't feel right.
>
> Any help is appreciated
> Simon
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to