Just to clarify: I think you should set appropriate contextIds for your Camel Contexts, and sift your logs based on the "camel.contextId" key in the MDC, not the camelContextId key as the post suggests (as we changed the key from 2.10 onwards).
Otherwise, if you use the bundle ID as the sifting key, all your logs from all contexts may end up in the log file for the camel-core bundle, as the log statement is ultimately produced there (I haven't tested this – just speaking off the top of my head). Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Thu, Aug 29, 2013 at 2:54 PM, Raul Kripalani <r...@evosent.com> wrote: > Hi Hilderich, > > Are you using the MDCSiftAppender? What key are you sifting on? > > Perhaps this post will help you: > http://dywicki.pl/2012/02/advanced-apache-camel-logging-and-best-practices/ > . > > Regards, > > *Raúl Kripalani* > Apache Camel PMC Member & Committer | Enterprise Architect, Open Source > Integration specialist > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > http://blog.raulkr.net | twitter: @raulvk > > On Thu, Aug 29, 2013 at 10:37 AM, Hilderich <hilde.sch...@yahoo.de> wrote: > >> Hello All! >> >> We are using Apache Camel 2.10.4 within Apache Karaf 2.3.1. >> >> We have a Camel Route and there is a logging endpoint inside: >> >> The logging in Apache Karaf is configured in a way that every bundle >> produces its >> own logfile and that Camel Route also resides in such a bundle: >> >> My intention is to get the logging message produced inside the Camel Route >> into the >> bundle log file. At the moment I can find that logging message only in >> /karaf.log/ and in /org.apache.camel.camel-core.log/ >> >> What logging name or logging category has to be use or what changes in pax >> logging >> configuration are essential to achieve this? >> >> Cheers and thanks in advance >> Hilderich >> >> >> >> >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Logging-into-the-bundle-log-file-via-to-log-tp5738205.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > >