Log4j enabled : i don't have the checkbox

One Star

Log4j enabled : i don't have the checkbox

Hi,
I'm using TOS DI 5.6.1 and normaly Log4j is automatically activated starting from version 5.6.1.
I would like active Log4j with it :
But, i don't have at the begining the checkox "Activate log4j in components"
Do you have an idea ?
Thanks !
Moderator

Re: Log4j enabled : i don't have the checkbox

Hi,
The log4j feature is only available in Talend Enterprise Subscription Version.
Please take a look at KB article about:TalendHelpCenter:How to activate log4j in Talend Studio?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Log4j enabled : i don't have the checkbox

Hi Sabrina,
I already read this article and i always have the same problem.
When i build my job, there is my error :
log4j:WARN No appenders could be found for logger (org.apache.james.mime4j.util.CharsetUtil).
log4j:WARN Please initialize the log4j system properly.
May be it's this bug ? ( jira.talendforge.org - TDI-32297 )
Thanks !
NB: i have an account but when i log me in, i'm redirecting on this forum like a guest !
One Star

Re: Log4j enabled : i don't have the checkbox

I have the same warnings on my Talend 5.6.1. It is a community edition. Here is the warnings
log4j:ERROR DOM element is - not a <log4j:configuration> element.
log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.PoolingClientConnectionManager).
log4j:WARN Please initialize the log4j system properly.
Highlighted
Seventeen Stars

Re: Log4j enabled : i don't have the checkbox

That happens because the under-laying library use log4j but this will not be initialized by the job.
You can do this in a simply way with:
tLoadLibary -> load log4j-1.2.17.jar (download it from the apache web site to your local pc and point to it
Use a tJava with this code: 
org.apache.log4j.BasicConfigurator.configure();

This will give you a meaningful logger and the output to the console.
 
Six Stars

Re: Log4j enabled : i don't have the checkbox

This is a great idea

But how then did you generate the log4j messages?

Does the tLogCatcher then output messages in a log4j (or similar) format? 

What component(s) did you use to generate the messages within the Talend job?

Can you provide a simple sample job, please?

 

Thank you!

Tags (1)

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download