A cleaner approach might be to use something like the sifting appender from logback to send the logs to different files (or whatever your requirement is) based on MDC variables that Camel sets.
http://logback.qos.ch/manual/appenders.html#SiftingAppender http://camel.apache.org/mdc-logging.html -- View this message in context: http://camel.465427.n5.nabble.com/logging-to-different-dynamic-appenders-tp5735080p5735157.html Sent from the Camel - Users mailing list archive at Nabble.com.