Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging simple text in Apache Camel logs

Is is possible to log simple text in Camel as follows

    <route>
     <from uri="direct:cxlrefdata"/>
     <to uri="log:'Hello World'" />
   </route>

I want to log this message, 'Hello World' in log, but all the examples which I find in Apache Camel site are for logging route messages.

e.g

<route>
  <from uri="direct:t1"/>
  <to uri="log:output?showAll=true" />
</route>

I want something simple which can log test messages.

like image 918
Ashay Batwal Avatar asked Apr 10 '13 10:04

Ashay Batwal


1 Answers

Yes see the log eip http://camel.apache.org/logeip.html

This allows you to log human readable messages to the log. You could have spotted it, by the green tip box on the log component page: http://camel.apache.org/log

like image 80
Claus Ibsen Avatar answered Nov 14 '22 22:11

Claus Ibsen