Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Filtring Log4j message (hide components trace)

Hello,

I use log4j to trace all my job's messages.

For the functional messages, I use several tWarn component with several log level (INFO, WARNING, ERROR)

The problem, when i run my job, a lot of trace are generated for all components (like : tWarn_1 - Start to work; tChronometerStop_1 - Stop time: 1476194609126 milliseconds; ...)

(see: How to activate log4j in Talend Studio? : )


I want to use INFO level for functional message, and WARNING level for all other messages.

In the output log file log.txt_20161012-0128.txt , I want to view only the line 18 ( " tWarn_1 - Message: Flux n°123456123153421|BUS ...")

I've tried to create another logger in Log4j xml configuration (File / Edit projet properties / Log4j) but there is only one Logger object in the generated source code ( private static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(my_job_1_5_0.class);)


How configure Log4j to view only my functional messages on the INFO level ?

Thanks.
Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hi,
Would you mind posting your job setting screenshot into forum? Have you already checked document about:TalendHelpCenter:Log4j settings?
Best regards
Sabrina