I want to write error log from my job insert data to mysql db. I have got error log on talend console and i want write it to file, like picture below :
How to write that error log to file?
Error logging at the project level
This section explains how to set logging at the project level.
Navigate to File > Edit project settings > Job settings.
Select the check box below Stats and Logs to enable the logging at the project level.
If logging at the project level is enabled, every new Job created inherits the settings.
Configure the output of your logs by choosing one of the options below.
Error logging in the console
This section explains how to configure your project to display the logs in the console.
Navigate to Job settings > Stats & Logs.
Select the check box to the left of On Console.
These logs are not captured anywhere and are overwritten every time you run a Job.
Error logging in a file
This section explains how to capture the logs in files.
Capturing the logs in files is a better option, because you can use the log to see details about the stats, logs and even meter/data flow. If project level logging is enabled, you do not need to separately configure components such as tLogCatcher, tFlowMeter and tStatCatcher.
Select the check box to the left of On File.
Although the screen shows static file names, they can be modified by appending a timestamp to their name. This way, you have a different log file for each timestamp. Otherwise, it would append the same file for every execution.
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)
I have been following your suggestion, but still can not get log from talend console. This is my configuration :
This is picture where file have been created from my talend config. Just one file have been created and error log from console still have not captured.Thanks.
How can log file be appended with timestamp ? Means can we have different logs files for different job ,is it feasible to achieve it as jobname_timestamp.log ?If yes how it can be achieved?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Read about some useful Context Variable ideas