Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
paresh1
Contributor III
Contributor III

Write the log to file produced by the Debug console of the Job

Hello,

Below is the log produced when enabled log4j --->debug in Job run-->advance settings:

13:36:19.676 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieving the record 3199.

13:36:19.676 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Writing the record 3199.

13:36:19.676 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieving the record 3200.

13:36:19.676 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Writing the record 3200.

13:36:19.764 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieving the record 3201.

13:36:19.764 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Writing the record 3201.

13:36:19.764 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieving the record 3202.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Writing the record 3202.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieving the record 3203.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Writing the record 3203.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieving the record 3204.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Writing the record 3204.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieving the record 3205.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Writing the record 3205.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieving the record 3206.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Writing the record 3206.

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieved records count: 3206 .

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Done.

13:36:19.766 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Written records count: 3206 .

13:36:19.766 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Done.

[statistics] disconnected

13:36:19.768 [main] INFO local_project.test_append_date_to_file_0_1.test_append_date_to_file - TalendJob: 'test_append_date_to_file' - Done.

Job test_append_date_to_file ended at 13:36 21/07/2020. [Exit code = 0]

 

 

How do I write the debug log to a file?

 

If possible, How do I capture the specific lines that gives total count to a log file,not the all debug lines:

 

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Retrieved records count: 3206 .

13:36:19.765 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tDBInput_1 - Done.

13:36:19.766 [main] DEBUG local_project.test_append_date_to_file_0_1.test_append_date_to_file - tFileOutputDelimited_1 - Written records count: 3206 .

Thanks

Labels (3)
1 Reply
Anonymous
Not applicable

Hello,

Please follow up this documentation about: TalendHelpCenter:Customizing log4j output level at runtime to change the logging output level for an execution of your Job.

Best regards

Sabrina