Logging simple text in Apache Camel logs

apache-camel, java

Solution

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

Problem

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.

Original source