Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

logging inside a talend component

Hello,

I create different TalendESB components. What is the standard logging? Dont want to use System.out.println().

Greets

Benjamin

Labels (2)
2 Replies
Anonymous
Not applicable
Author

The jobs have a member variable log and you can use it. Please take care in your components you do not ship Log4J (if you depends on it set this library as provided) because the Karaf runtime ships with a patched log4j lib and you would overwrite these patched classes and destroy this way any logging.
Anonymous
Not applicable
Author

how can I use it? Compiler say log is not definied. I have see that other component use logger in this way:
<%if(isLog4jEnabled){%>

log.info("<%=cid%> - ....");

How can I activate log4jEnabled?