Talend Studio
includes the Apache logging utility Log4j to provide logging at runtime. You can enable
or disable Log4j loggers in components and customize the Log4j configuration globally
for the project.
Warning: Following the Log4j2 security issue, make sure to
disable Log4j loggers in components when you run Spark Batch and Spark Streaming Jobs with
Azure Synapse and HD Insight 4.0 distributions. To avoid any Job failure, clear the
Activate log4j in components check box from the
Log4j view in .
Procedure
-
On the toolbar of the Studio main window, click
or click
from the menu bar to open the Project
Settings dialog box.
-
In the tree view of the dialog box, click the Log4j node to open the Log4j view.
-
Select the Activate log4j in
components check box to activate the Log4j feature.
By default, the Log4j
feature is activated and Log4j 2 is enabled when a project is created.
When a project is imported from Talend 7.2 or an earlier
version, which only supports Log4j 1, the deprecated Log4j 1 is selected
from the Log4j version drop-down list
by default. All POM files for the project will be synchronized when you
change the Log4j version.
-
If needed, change the global Log4j configuration by modifying
the XML instructions in the Log4j
template area.