<?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 tLog4j custom component logging information to a file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215358#M11801</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I need help to write tLog4j custom component logging information to a file. By default tLog4J is writing on console. How should I configure, and where should I configure If I want tLog4J to write logging info to a file say " c:/log/myjob.txt ". Help Appreciated.&amp;nbsp;&lt;BR /&gt;Thanks,&lt;BR /&gt;Madhu&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 11:16:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:16:48Z</dc:date>
    <item>
      <title>tLog4j custom component logging information to a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215358#M11801</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I need help to write tLog4j custom component logging information to a file. By default tLog4J is writing on console. How should I configure, and where should I configure If I want tLog4J to write logging info to a file say " c:/log/myjob.txt ". Help Appreciated.&amp;nbsp;&lt;BR /&gt;Thanks,&lt;BR /&gt;Madhu&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215358#M11801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: tLog4j custom component logging information to a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215359#M11802</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;Open the log4j.xml configuration file used in the job and modify the DailyFileAppender attribute, for example: 
&lt;BR /&gt; 
&lt;PRE&gt;	&amp;lt;appender name="DailyFileAppender" class="org.apache.log4j.DailyRollingFileAppender"&amp;gt;&lt;BR /&gt;	&amp;lt;param name="DatePattern" value="'.'yyyy-MM-dd"/&amp;gt;&lt;BR /&gt;	&amp;lt;param name="File" value="c:/log/myjob.txt&amp;nbsp;"/&amp;gt;&lt;BR /&gt;	&amp;lt;param name="Append" value="true"/&amp;gt;&lt;BR /&gt;	&amp;lt;layout class="org.apache.log4j.PatternLayout"&amp;gt;&lt;BR /&gt;		&amp;lt;param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p %c{2} - %m%n"/&amp;gt;&lt;BR /&gt;	&amp;lt;/layout&amp;gt;&lt;BR /&gt;	&amp;lt;/appender&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Mar 2015 00:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215359#M11802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T00:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: tLog4j custom component logging information to a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215360#M11803</link>
      <description>Hi shong, 
&lt;BR /&gt;Thanks for answering. 
&lt;BR /&gt;Where is the log4j.xml in my Job. Are you talking about Log4J setup in Project Settings. ?? Sorry I am new to talend. If you are talking about project setup Log4J, Then please let me know I will delete tLog4J custom component. If not, Their is no log4j.xml file in downloaded extracted tLog4J zip file. 
&lt;BR /&gt;My intention was to use tLog4J custom component. When I use it, by default it is writing logging information on console. I want it to be a on a file and file path should be able to update run time(how we do in regular java web application) 
&lt;BR /&gt;Thanks. 
&lt;BR /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/264207/Capture.jpg.jpg" /&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215360#M11803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T15:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: tLog4j custom component logging information to a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215361#M11804</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;I am talking about the Log4j custom components, you can find an example job of log4j components and log4j.xml file from 
&lt;A href="https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%2F1&amp;amp;pi=marketplace%2F1%2Fproducts%2F342%2Fitems%2F479" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;. In the example job, you need to specify the path of log4j.xml on tInitLog4j component, see 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/1_20150326-1224.png" target="_blank"&gt;&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/1_20150326-1224.png" /&gt;&amp;nbsp;&lt;/A&gt; 
&lt;BR /&gt;Let me know if you can't still make&amp;nbsp;it work. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 26 Mar 2015 11:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLog4j-custom-component-logging-information-to-a-file/m-p/2215361#M11804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-26T11:22:06Z</dc:date>
    </item>
  </channel>
</rss>

