Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More

Is there a way to use the log4j Talend instance to log in the Jobs?

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Is there a way to use the log4j Talend instance to log in the Jobs?

Last Update:

Feb 9, 2024 2:06:24 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:23:25 AM

Question

Which log4j logger instance should be used to log inside a Job?

 

Answer

The tJava component allows you to use the existing log instance of the Job, for example:

 

log.debug("DEBUG: Hello World");
log.info("INFO: Hello World");
log.warn("WARN: Hello World");
log.error("ERROR: Hello World");
Version history
Last update:
‎2024-02-09 02:06 PM
Updated by: