One Star

Creating logs for standalone Talend jobs

I want to schedule talend .sh files with cronjob daily.
How can I setup log files which logs daily run and in case of error details the error? 
Thanks 
3 REPLIES
Moderator

Re: Creating logs for standalone Talend jobs

Hi,
You can use tLogCatcher to fetch error in your job and output the error message into a file.
The workflow should be:
xxx-->xxxx-->xxx(Main subjob)
tLogCatcher-->tFileOutputDelimited(log error into a file)
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Creating logs for standalone Talend jobs

Thank you for the reply. 
I would also like that daily job run also logs different steps run in the job. 
What can I use for that?
Moderator

Re: Creating logs for standalone Talend jobs

Hi,
I would also like that daily job run also logs different steps run in the job.

For debug,  you can add some tLogRow components in the job to print the data on the console. Add this word "pause" at the end line of job script(.bat or .sh), to see the message printed on the console before the window closes.
Here is also static log(TalendHelpCenter:tStatCatcher) which gathers the Job processing metadata at the Job level and at the component level(Moment, pid, father_pid,root_pid...etc)
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.