<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Camel MDC appender in Karaf in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312331#M83290</link>
    <description>&lt;P&gt;Hello Eric,&lt;/P&gt;
&lt;P&gt;We have redirected your issue to our ESB experts and then come back to you as soon as we can.&lt;/P&gt;
&lt;P&gt;Thanks for your time.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 06:49:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-06T06:49:59Z</dc:date>
    <item>
      <title>Camel MDC appender in Karaf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312330#M83289</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know how to add Camel MDC appender in karaf with log4j2 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With log4j, it used to be:&lt;/P&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 &lt;STRONG&gt;# Camel MDC appender&lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number5 index4 alt2"&gt;
 &lt;STRONG&gt;log4j.appender.camel-mdc=org.apache.log4j.sift.MDCSiftingAppender&lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number6 index5 alt1"&gt;
 &lt;STRONG&gt;log4j.appender.camel-mdc.key=camel.routeId&lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number7 index6 alt2"&gt;
 &lt;STRONG&gt;log4j.appender.camel-mdc.default=unknown &lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number8 index7 alt1"&gt;
 &lt;STRONG&gt;log4j.appender.camel-mdc.appender=org.apache.log4j.FileAppender&lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number9 index8 alt2"&gt;
 &lt;STRONG&gt;log4j.appender.camel-mdc.appender.layout=org.apache.log4j.PatternLayout&lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number10 index9 alt1"&gt;
 &lt;STRONG&gt;log4j.appender.camel-mdc.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{camel.exchangeId} | %m%n&lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number11 index10 alt2"&gt;
 &lt;STRONG&gt;log4j.appender.camel-mdc.appender.file=${karaf.data}/log/camel-$\\{camel.routeId\\}.log&lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number12 index11 alt1"&gt;
 &lt;STRONG&gt;log4j.appender.camel-mdc.appender.append=true&lt;/STRONG&gt;
&lt;/DIV&gt;
&lt;DIV class="line number12 index11 alt1"&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV class="line number12 index11 alt1"&gt;
 Thanks for your help.
&lt;/DIV&gt;
&lt;DIV class="line number12 index11 alt1"&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV class="line number12 index11 alt1"&gt;
 Eric
&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312330#M83289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Camel MDC appender in Karaf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312331#M83290</link>
      <description>&lt;P&gt;Hello Eric,&lt;/P&gt;
&lt;P&gt;We have redirected your issue to our ESB experts and then come back to you as soon as we can.&lt;/P&gt;
&lt;P&gt;Thanks for your time.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 06:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312331#M83290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T06:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Camel MDC appender in Karaf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312332#M83291</link>
      <description>&lt;P&gt;I managed to make MDC work with LOG4J 2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;log4j2.rootLogger.appenderRef.Camel.ref = Camel

log4j2.patternCamel = %d{ISO8601}|%-5.5p|%X{bundle.id}|%X{camel.routeId}|%X{bundle.name}|%m%n

log4j2.appender.camel.type = Routing
log4j2.appender.camel.name = Camel
log4j2.appender.camel.routes.type = Routes
log4j2.appender.camel.routes.pattern = $$\\{ctx:context.routeId\\}
log4j2.appender.camel.routes.context.type = Route
log4j2.appender.camel.routes.context.rolling.type = RollingFile
log4j2.appender.camel.routes.context.rolling.name = camel-$\\{ctx:context.routeId\\}
log4j2.appender.camel.routes.context.rolling.layout.type = PatternLayout
log4j2.appender.camel.routes.context.rolling.layout.pattern = ${log4j2.patternCamel}
log4j2.appender.camel.routes.context.rolling.fileName = ${karaf.data}/log/camel-$\\{ctx:context.routeId\\}.log
log4j2.appender.camel.routes.context.rolling.filePattern= ${karaf.data}/log/camel-$\\{ctx:context.routeId\\}.log.%i
log4j2.appender.camel.routes.context.rolling.policies.type = Policies
log4j2.appender.camel.routes.context.rolling.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.camel.routes.context.rolling.policies.size.size = 20MB&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jun 2018 09:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312332#M83291</guid>
      <dc:creator>vharcq</dc:creator>
      <dc:date>2018-06-11T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Camel MDC appender in Karaf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312333#M83292</link>
      <description>&lt;P&gt;I managed to make MDC work with LOG4J 2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;log4j2.patternCamel = %d{ISO8601}|%-5.5p|%X{bundle.id}|%X{camel.routeId}|%X{bundle.name}|%m%n

log4j2.rootLogger.appenderRef.Camel.ref = Camel

log4j2.appender.camel.type = Routing
log4j2.appender.camel.name = Camel
log4j2.appender.camel.routes.type = Routes
log4j2.appender.camel.routes.pattern = $$\\{ctx:camel.contextId\\}
log4j2.appender.camel.routes.context.type = Route
log4j2.appender.camel.routes.context.rolling.type = RollingFile
log4j2.appender.camel.routes.context.rolling.name = camel-$\\{ctx:camel.contextId\\}
log4j2.appender.camel.routes.context.rolling.layout.type = PatternLayout
log4j2.appender.camel.routes.context.rolling.layout.pattern = ${log4j2.patternCamel}
log4j2.appender.camel.routes.context.rolling.fileName = ${karaf.data}/log/camel-$\\{ctx:camel.contextId\\}.log
log4j2.appender.camel.routes.context.rolling.filePattern= ${karaf.data}/log/camel-$\\{ctx:camel.contextId\\}.log.%i
log4j2.appender.camel.routes.context.rolling.policies.type = Policies
log4j2.appender.camel.routes.context.rolling.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.camel.routes.context.rolling.policies.size.size = 20MB&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 09:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312333#M83292</guid>
      <dc:creator>vharcq</dc:creator>
      <dc:date>2018-06-11T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Camel MDC appender in Karaf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312334#M83293</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Its great to see you are able to implement&amp;nbsp;Camel MDC appender in Karaf .&lt;/P&gt;&lt;P&gt;I would need some help? Can you please share your steps?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 21:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-MDC-appender-in-Karaf/m-p/2312334#M83293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-31T21:30:35Z</dc:date>
    </item>
  </channel>
</rss>

