Hi there,

I have a route defined as follows:

<route id="bla">
<from uri="....">
<setHeader headerName="CamelFileName">
<constant>${date:now:yyyyMMddHHmmssSSS}.txt</constant>
</setHeader>
<log message="my filename ${header.CamelFileName} !"/>          
<to uri="ftp://bla"/>
</route>

The generated filename is (as supposed) the timestamp when it's created plus
the suffix .txt. But the log entry is the pattern/expression how it's
defined.

The filename is 20131001120000000.txt but
the log entry looks like this:
"my filename ${date:now:yyyyMMddHHmmssSSS}.txt"

I want to log the generated filename which is set in the header.

Could someone please tell me what's wrong?

I'm using Camel 2.8.4.

Thx in advance.

 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Log-dynamic-filename-tp5740747.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to