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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to pass context variables to log4j.xml in talend?

Hi Team,

please help me in how to call context variables from log4j.xml fie .

I have found log4j supports variable substitution as ${variableName}.

how can i call context variable to log4j.xml file in above syntax

 

Thanks,

Abhi529 

Labels (4)
3 Replies
Anonymous
Not applicable
Author

I don't believe you can use context variables here. This is based on a response from Talend R&D from around 2015. However, this may have changed. @shong is this still the case?

Anonymous
Not applicable
Author

Hi
I don't think it is possible to use context variable directly in log4j.xml file, maybe you need to reinitialize log4j on a tJava and use context variable.

Regards
Shong
Anonymous
Not applicable
Author

Hi @shong,

 

Thank you for your answer.

could you please explain me "how to reinitialize log4j on a tJava and use context variable.

 

Thanks,

Abhi529