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.

Reply via email to