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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
MarcusDidius
Contributor
Contributor

Using log4j2

Hello,

I am trying to use log4j2 for logging.

0693p00000AbVMOAA3.png

I have custom code under code - routines. But the import fails. This has worked before ... I don't know what I have done differenlty, if anything.

0693p00000AbVMTAA3.png

0693p00000AbVMYAA3.png

I click on Fix project setup and the error goes away.

However as soon as I try to build or run a job, the error appears again.

0693p00000AbVMdAAN.png

I also use an external Java jar project which uses

<

dependency

>

    

<

groupId

>

org.apache.logging.log4j

</

groupId

>

    

<

artifactId

>

log4j-

api

</

artifactId

>

    

<

version

>

2.14.0

</

version

>

</

dependency

>

<

dependency

>

    

<

groupId

>

org.apache.logging.log4j

</

groupId

>

    

<

artifactId

>

log4j-core

</

artifactId

>

    

<

version

>

2.14.0

</

version

>

</

dependency

>

I have also tried to manually add the log4j2 jars

0693p00000AbVOeAAN.png

But they dissappear as soon as I try to run a job.

This is driving me crazy 😞

TOS_DI-20200219_1130-V7.3.1

Any suggestions how to proceed would be greatly appreciated.

Edit-

When I remove the imports and try Ctrl-O

0693p00000AbdeaAAB.png

Log4j2 is missing althought I have configured it on the project (see above) Is there any way to fix this?

Labels (2)
1 Reply
Anonymous
Not applicable

Hello,

It should be talend subscription solution feature.

Please refer to this online documentation: TalendHelpCenter: Configuring Log4j

Best regards

Sabrina