camel-users mailing list archives

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

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

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

is working as expected, whereas

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

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

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message