<?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: log4j2:Providing log file location and log4j.xml configuration file through context variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335008#M103614</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;We have reported your issue to our ESB experts and will keep you updated to your issue as soon as we can.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Fri, 16 Apr 2021 07:47:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-16T07:47:55Z</dc:date>
    <item>
      <title>log4j2:Providing log file location and log4j.xml configuration file through context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335003#M103609</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am migrating from log4j1( 6.2.1) to log42 (7.3.1)&lt;/P&gt;&lt;P&gt;Earlier we used to manually initialize the log4j through tlog4jinit and set the log file name and location through system. set  in jobs.&lt;/P&gt;&lt;P&gt;Now we are planning for upgrade and want to use the talend provided log4j2 framework&lt;/P&gt;&lt;P&gt;I see the help document &lt;A href="https://help.talend.com/r/9TuKg6zZZmEHit1Ntl3pOw/2kpRuWQFjIGun6Lj6H31ww" alt="https://help.talend.com/r/9TuKg6zZZmEHit1Ntl3pOw/2kpRuWQFjIGun6Lj6H31ww" target="_blank"&gt;https://help.talend.com/r/9TuKg6zZZmEHit1Ntl3pOw/2kpRuWQFjIGun6Lj6H31ww&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check if I can configure something like attach file and set default value for &lt;B&gt;context.logfilename and&lt;/B&gt; &lt;B&gt;context.logbasepath variable in &lt;/B&gt;the job .Basically I want to provide user to configure the log file name and location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried multiple option but nothing is working. Need help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 09:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335003#M103609</guid>
      <dc:creator>aksharma</dc:creator>
      <dc:date>2021-04-01T09:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: log4j2:Providing log file location and log4j.xml configuration file through context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335004#M103610</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Usually, we use log4j to capture the log message and it doesn't support context variable.&lt;/P&gt;&lt;P&gt;Is it working when you use the ${TalendJob.log}? Which creates a log file with the Talend's job name.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 03:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335004#M103610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-02T03:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: log4j2:Providing log file location and log4j.xml configuration file through context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335005#M103611</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Thanks for reply&lt;/P&gt;&lt;P&gt;yes ,it works with &lt;B&gt;${sys:TalendJob.log} &lt;/B&gt;but we want to control location of log file generation as well as the log4j.xml file location&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can achieve this with &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;RollingFile name="RollingFileAppender" fileName="&lt;B&gt;${log4j:configParentLocation}&lt;/B&gt;/&lt;B&gt;${sys:TalendJob.log}&lt;/B&gt;"&amp;nbsp;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but we have to pass the log4j.xml file location through jvm parammeters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; -Dlog4j.configurationFile=C:\Users\aksharma\Downloads\testlogs\log4j2.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am not sure if multiple job/service artifacts can use same location of log4j2.xml file &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; how we can achieve same for multiple rest services  generating multiple log files  running under same karaf container &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 10:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335005#M103611</guid>
      <dc:creator>aksharma</dc:creator>
      <dc:date>2021-04-03T10:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: log4j2:Providing log file location and log4j.xml configuration file through context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335006#M103612</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your feedback. We will make an investigation on your issue and then come back to you as soon as possible.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 10:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335006#M103612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-06T10:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: log4j2:Providing log file location and log4j.xml configuration file through context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335007#M103613</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any update on this  ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 12:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335007#M103613</guid>
      <dc:creator>aksharma</dc:creator>
      <dc:date>2021-04-15T12:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: log4j2:Providing log file location and log4j.xml configuration file through context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335008#M103614</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;We have reported your issue to our ESB experts and will keep you updated to your issue as soon as we can.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 07:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/log4j2-Providing-log-file-location-and-log4j-xml-configuration/m-p/2335008#M103614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-16T07:47:55Z</dc:date>
    </item>
  </channel>
</rss>

