<?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 Write custom info messages into Job's Log from tJava in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Write-custom-info-messages-into-Job-s-Log-from-tJava/m-p/2232746#M22608</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've some job's that write custom info log in console using a custom function (writeLog(message), using System.out.println()).&lt;/P&gt;
&lt;P&gt;I've implemented project level&amp;nbsp;log writing in a mysql db the messages with tWarn end tDie (of course using tLogCatcher).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many messages were moved from custom function to tWarn, but I want have the possibility to use the log inside tJava.&lt;/P&gt;
&lt;P&gt;I can't make work any opf the following solution:&lt;/P&gt;
&lt;P&gt;1- using the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; tLogCatcher_1.addMessage("Procedure", "tWarn_1app", 4, "&amp;lt;warning description&amp;gt;",123);&lt;BR /&gt;&amp;nbsp; tLogCatcher_1Process(globalMap);&lt;/P&gt;
&lt;P&gt;2- using the code:&lt;/P&gt;
&lt;PRE&gt;org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(this.getClass());&lt;BR /&gt;logger.info("In your message !!!");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose that is not possible using the standard logging system (defined in Stats &amp;amp; Log in Projet Properties) inside a tjava component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone can help me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Aldo Buttini&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:04:19 GMT</pubDate>
    <dc:creator>manniche</dc:creator>
    <dc:date>2024-11-16T03:04:19Z</dc:date>
    <item>
      <title>Write custom info messages into Job's Log from tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-custom-info-messages-into-Job-s-Log-from-tJava/m-p/2232746#M22608</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've some job's that write custom info log in console using a custom function (writeLog(message), using System.out.println()).&lt;/P&gt;
&lt;P&gt;I've implemented project level&amp;nbsp;log writing in a mysql db the messages with tWarn end tDie (of course using tLogCatcher).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many messages were moved from custom function to tWarn, but I want have the possibility to use the log inside tJava.&lt;/P&gt;
&lt;P&gt;I can't make work any opf the following solution:&lt;/P&gt;
&lt;P&gt;1- using the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; tLogCatcher_1.addMessage("Procedure", "tWarn_1app", 4, "&amp;lt;warning description&amp;gt;",123);&lt;BR /&gt;&amp;nbsp; tLogCatcher_1Process(globalMap);&lt;/P&gt;
&lt;P&gt;2- using the code:&lt;/P&gt;
&lt;PRE&gt;org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(this.getClass());&lt;BR /&gt;logger.info("In your message !!!");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose that is not possible using the standard logging system (defined in Stats &amp;amp; Log in Projet Properties) inside a tjava component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone can help me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Aldo Buttini&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-custom-info-messages-into-Job-s-Log-from-tJava/m-p/2232746#M22608</guid>
      <dc:creator>manniche</dc:creator>
      <dc:date>2024-11-16T03:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Write custom info messages into Job's Log from tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-custom-info-messages-into-Job-s-Log-from-tJava/m-p/2232747#M22609</link>
      <description>&lt;P&gt;up, please anyone can help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Aldo&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 16:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-custom-info-messages-into-Job-s-Log-from-tJava/m-p/2232747#M22609</guid>
      <dc:creator>manniche</dc:creator>
      <dc:date>2020-03-06T16:10:56Z</dc:date>
    </item>
  </channel>
</rss>

