Create log file in Talend Open Studio

One Star

Create log file in Talend Open Studio

Hi,

 

I am very new to Talend. I have designed one job to get excel files from folder, read the file and insert the data into the Database table. If file is processed successfully then move the file into 'Archive' folder and if at any stage error occurs while processing the file then move that file into 'Error' folder.

Now, I am trying to track the errors. I want to create a 'log' file when I finished my job. so that I can track the error. Also, I want to print date and filename in the log.

I will really appreciate if anyone can help me on that.

Below are the screen shots of my job.

(Note: I am using Talend open studio for Data Integration: 7.0.1)

 

- Poonam

Sixteen Stars TRF
Sixteen Stars

Re: Create log file in Talend Open Studio

Have a look to tLogCatcher & tWarn to construct your logfile.
You should also consider to connect your tMSSQLOutput to your logfile using the reject connector if you want details regarding which records failed and the reason why.

TRF
Seven Stars

Re: Create log file in Talend Open Studio

hi poonam,

i hope @TRF  answered the question tlogCatcher and tStatCatcher components can catch both the logs and statistics of a talend job and store them in to a preferred lfs location. If your requirement was to save the console logs also, then  check this link 

https://community.talend.com/t5/Design-and-Development/How-to-redirect-all-output-of-my-console-to-a...

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog