<?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 Logging multiple log console outputs to a csv file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Logging-multiple-log-console-outputs-to-a-csv-file/m-p/2371880#M134773</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&amp;nbsp; I'm unsure about what the best approach would be to collect log console output data to a csv file.&lt;BR /&gt;&lt;BR /&gt;At the moment I'm dumping all of the console output to a file and the resulting txt is, which I want as a csv with headers&lt;BR /&gt;&lt;BR /&gt;tJava_1 code is :&lt;/P&gt; 
&lt;PRE&gt;java.io.File logFile = new java.io.File("_logs/"+projectName+".log");&lt;BR /&gt;java.io.PrintStream ps = new java.io.PrintStream(new java.io.BufferedOutputStream(new java.io.FileOutputStream(logFile)));&lt;BR /&gt;&lt;BR /&gt;System.setOut(ps);&lt;BR /&gt;System.setErr(ps);&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;How can I get this into a csv?&lt;BR /&gt;&lt;BR /&gt;Header &amp;gt; status code (200 or 400) | person_id | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;contact_id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Full Name &amp;nbsp; &amp;nbsp; &amp;nbsp;| Error Message (if applicable)&lt;BR /&gt;Data &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;150014236 &amp;nbsp; &amp;nbsp; &amp;nbsp;001O000000lJwuEIAS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jono Bridges&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 400 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;00128000003KXkJAAW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Acme &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A surname is required&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P.S. - The tFileOutputDelimited components just appended each console output in the first column and wasn't as good as the tjava txt file which at least grouped the data together.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/304731/talend_log.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGXs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157949i1C9F2909EF4BC0F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGXs.png" alt="0683p000009MGXs.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/304731/talend_log_txt_file.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGc2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139671iB1FC9607DB127D8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGc2.png" alt="0683p000009MGc2.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2015 07:36:42 GMT</pubDate>
    <dc:creator>synfield</dc:creator>
    <dc:date>2015-07-28T07:36:42Z</dc:date>
    <item>
      <title>Logging multiple log console outputs to a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Logging-multiple-log-console-outputs-to-a-csv-file/m-p/2371880#M134773</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&amp;nbsp; I'm unsure about what the best approach would be to collect log console output data to a csv file.&lt;BR /&gt;&lt;BR /&gt;At the moment I'm dumping all of the console output to a file and the resulting txt is, which I want as a csv with headers&lt;BR /&gt;&lt;BR /&gt;tJava_1 code is :&lt;/P&gt; 
&lt;PRE&gt;java.io.File logFile = new java.io.File("_logs/"+projectName+".log");&lt;BR /&gt;java.io.PrintStream ps = new java.io.PrintStream(new java.io.BufferedOutputStream(new java.io.FileOutputStream(logFile)));&lt;BR /&gt;&lt;BR /&gt;System.setOut(ps);&lt;BR /&gt;System.setErr(ps);&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;How can I get this into a csv?&lt;BR /&gt;&lt;BR /&gt;Header &amp;gt; status code (200 or 400) | person_id | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;contact_id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Full Name &amp;nbsp; &amp;nbsp; &amp;nbsp;| Error Message (if applicable)&lt;BR /&gt;Data &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;150014236 &amp;nbsp; &amp;nbsp; &amp;nbsp;001O000000lJwuEIAS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jono Bridges&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 400 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;00128000003KXkJAAW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Acme &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A surname is required&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P.S. - The tFileOutputDelimited components just appended each console output in the first column and wasn't as good as the tjava txt file which at least grouped the data together.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/304731/talend_log.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGXs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157949i1C9F2909EF4BC0F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGXs.png" alt="0683p000009MGXs.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/304731/talend_log_txt_file.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGc2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139671iB1FC9607DB127D8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGc2.png" alt="0683p000009MGc2.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 07:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Logging-multiple-log-console-outputs-to-a-csv-file/m-p/2371880#M134773</guid>
      <dc:creator>synfield</dc:creator>
      <dc:date>2015-07-28T07:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Logging multiple log console outputs to a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Logging-multiple-log-console-outputs-to-a-csv-file/m-p/2371881#M134774</link>
      <description>At the beginning of job, write the header information to the csv file first. eg:&lt;BR /&gt;tFixedFlowInput--main--tFileOutputDelimted&lt;BR /&gt;&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;other job parts.&lt;BR /&gt;on tFixedFlowInput, define the header columns.&amp;nbsp;&lt;BR /&gt;on other job parts, catch the error message and customize them, append them to the csv file.</description>
      <pubDate>Tue, 28 Jul 2015 09:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Logging-multiple-log-console-outputs-to-a-csv-file/m-p/2371881#M134774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-28T09:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logging multiple log console outputs to a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Logging-multiple-log-console-outputs-to-a-csv-file/m-p/2371882#M134775</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thanks for your reply. 
&lt;BR /&gt;I've defined the header via tFixedFlowInput --- main ---&amp;gt; tFileOutputDelimited at beginning of job, and it creates a csv with the headers i've defined. 
&lt;BR /&gt;However I'm not understanding how I insert the data under their respective header fields from log console at different points in the flow. 
&lt;BR /&gt;Can you please explain this in more detail. thanks.</description>
      <pubDate>Tue, 28 Jul 2015 23:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Logging-multiple-log-console-outputs-to-a-csv-file/m-p/2371882#M134775</guid>
      <dc:creator>synfield</dc:creator>
      <dc:date>2015-07-28T23:28:43Z</dc:date>
    </item>
  </channel>
</rss>

