<?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: tJobLog &amp;quot;log cannot be resolved&amp;quot; Java compile error when log4j turned off for project. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJobLog-quot-log-cannot-be-resolved-quot-Java-compile-error-when/m-p/2306810#M78311</link>
    <description>&lt;P&gt;I think I do have to enable log4j if I want to use the tJobLog component which seems like a fair design requirement.&amp;nbsp; I found a way to change the log4j run level from debug to info when I run the job so that eliminated the extraneous log messages.&amp;nbsp; I am going to mark this as resolved.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 07:32:02 GMT</pubDate>
    <dc:creator>nfz11</dc:creator>
    <dc:date>2019-06-27T07:32:02Z</dc:date>
    <item>
      <title>tJobLog "log cannot be resolved" Java compile error when log4j turned off for project.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJobLog-quot-log-cannot-be-resolved-quot-Java-compile-error-when/m-p/2306809#M78310</link>
      <description>&lt;P&gt;Hi, I am getting an error&amp;nbsp;"log cannot be resolved" from my tJobLog if I have log4j disabled for my project.&amp;nbsp; I want to keep 'Activate log4j for project' unchecked in my project properties because I do not want verbose logging from other components.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;				currentComponent = "tJobLog_1";

				org.apache.log4j.Level logPriority_tJobLog_1 = org.apache.log4j.Level
						.toLevel(20000);
				String message_tJobLog_1 = String
						.valueOf("Number of cases created for applications: "
								+ globalMap.get("tJavaRow_6_NB_LINE")
								+ ", "
								+ "Number of applications skipped because of existing case: "
								+ globalMap.get("tWarn_1_NB_LINE") + ".");

				org.apache.log4j.MDC.put("ticLogLevel", "2");
		                &lt;FONT color="#FF0000"&gt;log.log(logPriority_tJobLog_1, message_tJobLog_1);&lt;/FONT&gt;
				org.apache.log4j.MDC.remove("ticLogLevel");&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;Do I have to keep log4j enabled to use tJobLog?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 05:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJobLog-quot-log-cannot-be-resolved-quot-Java-compile-error-when/m-p/2306809#M78310</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-06-27T05:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: tJobLog "log cannot be resolved" Java compile error when log4j turned off for project.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJobLog-quot-log-cannot-be-resolved-quot-Java-compile-error-when/m-p/2306810#M78311</link>
      <description>&lt;P&gt;I think I do have to enable log4j if I want to use the tJobLog component which seems like a fair design requirement.&amp;nbsp; I found a way to change the log4j run level from debug to info when I run the job so that eliminated the extraneous log messages.&amp;nbsp; I am going to mark this as resolved.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 07:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJobLog-quot-log-cannot-be-resolved-quot-Java-compile-error-when/m-p/2306810#M78311</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-06-27T07:32:02Z</dc:date>
    </item>
  </channel>
</rss>

