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

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
Revision #:
4 of 4
Last update:
‎09-29-2018 12:16 AM
Updated by:
 
Labels (3)