Camel uses the ExchangeFormatter to format a string that is logged with the log component. The default implementation does a toString() on the Exchange object. And the default implementation logs the in message, that outputs its body.
So you want a verbose mode that outputs more or less the entire exchange? - in body - out body - exchange pattern - exchange id - in headers - out headers - exchange properties - etc. Well that is doable. Even though the functionally is there already with the trace interceptor. But we could extend the Log component to be able to set your own exchange formatter object and then you can implement the code that outputs the string message. And/Or we could add more options to the log component so you can turn on/off individual log outputs. Any thoughts? Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: cmoulliard [mailto:[EMAIL PROTECTED] Sent: 10. juli 2008 14:46 To: [email protected] Subject: Is it possible to log headers/properties (key,value pairs) through interceptors ? Hi, I have created a method to display in the console the key/value pairs of my headers / properties when I process a message in a bean because the intercept.to("log:myLog?level=DEBUG").proceed() does not generate anything. Question : Is something exist in the Camel framework to display key/value pairs of headers/properties through logging/interceptor classes or should we have to developp such display functionality ? Regards, Charles -- View this message in context: http://www.nabble.com/Is-it-possible-to-log-headers-properties-%28key%2Cvalue-pairs%29-through-interceptors---tp18382140s22882p18382140.html Sent from the Camel - Users mailing list archive at Nabble.com.
