
Anonymous
Not applicable
2016-10-12
05:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
195 Views
1 Reply

Anonymous
Not applicable
2016-10-13
03:50 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Would you mind posting your job setting screenshot into forum? Have you already checked document about:TalendHelpCenter:Log4j settings?
Best regards
Sabrina
Would you mind posting your job setting screenshot into forum? Have you already checked document about:TalendHelpCenter:Log4j settings?
Best regards
Sabrina
195 Views
