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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to configure the file path dynamically in log4j.xml file in talend?

I have my log4j.xml as follows...

 0683p000009LrEf.jpg

In the above figure, in highlighted part , i am giving the path statically. But, i want to give context path there...How can i read the context path there ...please give me the solution 

 

Thanks in advance,

Abhi529

 

Labels (1)
5 Replies
Anonymous
Not applicable
Author

You can try using tInitLog4J custom component. With this component you can specify your custom log4j configuration file.

The component source code is available under: https://github.com/bcourtine/Composants-Talend-Open-Studio/tree/master/Logging

And the component is available under: tInitLog4J

 

0683p000009Lqrn.png

 

 

Anonymous
Not applicable
Author

Hi h311,
Thanks for giving the answer.. could you please give me the screen shot of job (to know how to use tInitLog4J )

Thanks,
Abhi529
Anonymous
Not applicable
Author

Please find the screenshot below,

0683p000009LrEp.png

Anonymous
Not applicable
Author

Hi h311,+
I did not find any difference by using tInitLog4J and without using tInitLog4J , and I think this is not suitable solution for my question..

Thanks,
Abhi529

abhinav5
Contributor
Contributor

Hi @Abhi529 ,

Have you find a way to achieve this in talend.

 

Thanks,

Abhinav