Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
vimal_kumar
Contributor
Contributor

Log4j is not able to capture logs of child job in log4j file appender

Hi,

I using Talend 7.1 DI and trying to capture log details using log4j (log4j1.2).​ To do same, I have configured DailyFileAppender and set a file name param with value=$LOGFILE.

This param is passed from build ->sh "java -DLOGFILE=/tmp/abc.txt" and resolve to a path on execution server. All log4j logs are able to capture for Master/parent job into this log file.

However, log details of child job c1 & c2 called from this master using tRunJob is ​not at all getting captured. Tried log4j in debug mode - it is not able to resolve $LOGFILE from log4j.xml for child jobs..

Labels (3)
1 Reply
Anonymous
Not applicable

Hello,

Did you configure log4j in Project setting? It will apply for the whole project.

If you want to catch the error message from the child job, you should put log4j component /tLogCatcher in both father job and child job.

 

Best