camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OrackBahama <jdorfsch...@metadok.de>
Subject logging to different (dynamic) appenders
Date Tue, 02 Jul 2013 11:09:58 GMT
Hi,

I would like to define the name of a logger in a camel header variable.
Unfortunately this doesn't seem to work. Example:

.from(...)
  .log( LoggingLevel.INFO, "mylogger", "MyMessage )
.to(...)

is working as expected, whereas

.from(...)
  .setHeader( "logger", constant("mylogger"))
  .log( LoggingLevel.INFO, "${header.logger}", "MyMessage )
.to(...)

is not !
Isn't that possible or do I understand something wrong ? Workarounds
available ?
Thanks for help in advance.




--
View this message in context: http://camel.465427.n5.nabble.com/logging-to-different-dynamic-appenders-tp5735080.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message