<?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: Use a variable for fileName in log4j in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357734#M122945</link>
    <description>&lt;P&gt;you use [${sys:filename}] instead of "${sys:TalendJob.log}" &lt;/P&gt;&lt;P&gt;"${sys:TalendJob.log}"  is one of the only variable wich is set before the creation of the log4j appenders and logger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename will be created after so it crash&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 15:06:03 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2021-07-28T15:06:03Z</dc:date>
    <item>
      <title>Use a variable for fileName in log4j</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357730#M122941</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep the log4j output in a file for each job. Is it possible to use a variable with the pattern "jobname_date_hour" for example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put in a TpreJob ====&amp;gt; tjava :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System.setProperty("logFilename", filename);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where file name is a variable with the full path to the log file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And added this in Project Settings ===&amp;gt; log4j :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;File name="MyFile" fileName="${sys:logFilename}"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;PatternLayout pattern="[%-5level] %d{HH:mm:ss} %logger{36}- %msg%n"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/File&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i get this error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR FileManager (${sys:logFilename}) java.io.IOException: The filename, directory name, or volume label syntax is incorrect java.io.IOException: The filename, directory name, or volume label syntax is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a different way to assign the variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357730#M122941</guid>
      <dc:creator>DBOUAKKAZ</dc:creator>
      <dc:date>2024-11-15T23:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable for fileName in log4j</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357731#M122942</link>
      <description>&lt;P&gt;Hi @Djallel BOUAKKAZ​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;My log4j xml :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Configuration &amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Appenders&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Console name="Console" target="SYSTEM_OUT"&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;PatternLayout pattern="[%-5level] %d{HH:mm:ss} %logger{36}- %msg%n" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Console&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;File name="File" fileName="${sys:TalendJob.log}" &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;PatternLayout&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;pattern&amp;gt;%d %p %C{1.} [%t] %m%n&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/PatternLayout&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/File&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Appenders&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Loggers&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Root level="WARN"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;AppenderRef ref="File" /&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Root&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Loggers&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;/Configuration&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at the begining of the job in a tjava :&lt;/P&gt;&lt;P&gt;Advanced settings tab :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import org.apache.logging.log4j.core.LoggerContext;&lt;/P&gt;&lt;P&gt;import org.apache.logging.log4j.LogManager;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the basic settings :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String taljob = System.getProperty("TalendJob.log");&lt;/P&gt;&lt;P&gt;System.setProperty("TalendJob.log","C:\\coucou2.log");&lt;/P&gt;&lt;P&gt;org.apache.logging.log4j.core.LoggerContext ctx =(org.apache.logging.log4j.core.LoggerContext) LogManager.getContext(false);&lt;/P&gt;&lt;P&gt;ctx.reconfigure();&lt;/P&gt;&lt;P&gt;System.setProperty("TalendJob.log",taljob);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 14:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357731#M122942</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-28T14:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable for fileName in log4j</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357732#M122943</link>
      <description>&lt;P&gt;at the end of the job you can delete the file in your workspace\ your job name \poms\jobs\process\your jobname + version\src\main\ext-resources&lt;/P&gt;&lt;P&gt;created at the begining of the job with sys:TalendJob.&lt;/P&gt;&lt;P&gt;you can get the full path with :&lt;/P&gt;&lt;P&gt;System.getProperty("TalendJob.log")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TFileDelete:&lt;/P&gt;&lt;P&gt;File Name : System.getProperty("TalendJob.log")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;an other solution is to just make tfilecopy of the System.getProperty("TalendJob.log") file&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357732#M122943</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-28T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable for fileName in log4j</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357733#M122944</link>
      <description>&lt;P&gt;Thank you so much for your answer I'm able to generate the file with the pattern I was looking for but I'm still getting this error : &lt;/P&gt;&lt;P&gt;2021-07-28 16:57:32,658 main ERROR FileManager (${sys:filename}) java.io.IOException: The filename, directory name, or volume label syntax is incorrect java.io.IOException: The filename, directory name, or volume label syntax is incorrect&lt;/P&gt;&lt;P&gt;	at java.io.WinNTFileSystem.canonicalize0(Native Method)&lt;/P&gt;&lt;P&gt;	at java.io.WinNTFileSystem.canonicalize(Unknown Source)&lt;/P&gt;&lt;P&gt;	at java.io.File.getCanonicalPath(Unknown Source)&lt;/P&gt;&lt;P&gt;	at java.io.File.getCanonicalFile(Unknown Source)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:142)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:429)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:417)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:113)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:114)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.FileManager.getFileManager(FileManager.java:182)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:96)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:52)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1002)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:942)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:934)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:552)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:288)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:579)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:651)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:668)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:581)&lt;/P&gt;&lt;P&gt;	at rmmdb_on_premise.testcopyfile_0_1.TestCopyFile.&amp;lt;clinit&amp;gt;(TestCopyFile.java:58)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2021-07-28 16:57:32,665 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.FileAppender for element File: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory@458c1321] unable to create manager for [${sys:filename}] with data [org.apache.logging.log4j.core.appender.FileManager$FactoryData@11438d26] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory@458c1321] unable to create manager for [${sys:filename}] with data [org.apache.logging.log4j.core.appender.FileManager$FactoryData@11438d26]&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:115)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:114)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.FileManager.getFileManager(FileManager.java:182)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:96)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:52)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1002)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:942)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:934)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:552)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:288)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:579)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:651)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:668)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:581)&lt;/P&gt;&lt;P&gt;	at rmmdb_on_premise.testcopyfile_0_1.TestCopyFile.&amp;lt;clinit&amp;gt;(TestCopyFile.java:58)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2021-07-28 16:57:32,683 main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.FileAppender for element File: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.FileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.FileAppender&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:234)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:134)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1002)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:942)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:934)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:552)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:288)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:579)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:651)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:668)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)&lt;/P&gt;&lt;P&gt;	at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:581)&lt;/P&gt;&lt;P&gt;	at rmmdb_on_premise.testcopyfile_0_1.TestCopyFile.&amp;lt;clinit&amp;gt;(TestCopyFile.java:58)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2021-07-28 16:57:32,688 main ERROR Null object returned for File in Appenders.&lt;/P&gt;&lt;P&gt;2021-07-28 16:57:32,707 main ERROR Unable to locate appender "File" for logger config "root"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The job then continue and execute till the end correctly. Do you also have the same error ? and how do I avoid it ?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357733#M122944</guid>
      <dc:creator>DBOUAKKAZ</dc:creator>
      <dc:date>2021-07-28T15:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable for fileName in log4j</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357734#M122945</link>
      <description>&lt;P&gt;you use [${sys:filename}] instead of "${sys:TalendJob.log}" &lt;/P&gt;&lt;P&gt;"${sys:TalendJob.log}"  is one of the only variable wich is set before the creation of the log4j appenders and logger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename will be created after so it crash&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357734#M122945</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-28T15:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable for fileName in log4j</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357735#M122946</link>
      <description>&lt;P&gt;Thank you so much for your help. Now it works perfectly.&lt;/P&gt;&lt;P&gt;Also, is there some documentation on this ? this is my first time using log4j in Talend and I didn't find anything about the "TalendJob.log"&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357735#M122946</guid>
      <dc:creator>DBOUAKKAZ</dc:creator>
      <dc:date>2021-07-28T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable for fileName in log4j</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357736#M122947</link>
      <description>&lt;P&gt;I search in the java code of a talend project.&lt;/P&gt;&lt;P&gt;the first thing that talend do is :&lt;/P&gt;&lt;P&gt;System.setProperty("TalendJob.log", "yourjobname.log");&lt;/P&gt;&lt;P&gt;then it create the logger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357736#M122947</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-28T15:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable for fileName in log4j</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357737#M122948</link>
      <description>&lt;P&gt;I'm French : j'espere que Talend va reduire le retard des trains &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-a-variable-for-fileName-in-log4j/m-p/2357737#M122948</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-28T15:25:29Z</dc:date>
    </item>
  </channel>
</rss>

