Got it to work by defining the logger as a Bean using
http://stackoverflow.com/a/13160573/2625368

<bean id="myLogger" class="org.apache.log4j.Logger"
factory-method="getLogger">
    <constructor-arg value="servlet-example"/>
</bean>

and in my route

<to uri="bean:myLogger?method=info" />





--
View this message in context: 
http://camel.465427.n5.nabble.com/Logging-in-servlet-example-tp5750476p5750483.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to