Skip to main content

Configuring the Talend Data Preparation log files

To configure the settings of your log files, edit the <Data_Preparation_Path>/config/application.properties file.

Specifiy patterns for your logs by using logging.pattern.<file|console> properties. These properties use a logback style pattern. The default logging pattern is logging.pattern.level=%5p [user %X{user}], which displays the log level information, and the user's ID.

For more information, see the documentation on Logback pattern layouts.

Let's take the example of the following pattern, that will apply to the log files but not the console:

logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{15} - %msg %n

The output in the log file will look like this:

2017-02-21 11:07:03.741 [main] WARN  c.l.TrivialMain - a warning message 0
2017-02-21 11:07:03.741 [main] DEBUG c.l.TrivialMain - hello world number1
2017-02-21 11:07:03.741 [main] DEBUG c.l.TrivialMain - hello world number2
2017-02-21 11:07:03.741 [main] INFO  c.l.TrivialMain - hello world number3
2017-02-21 11:07:03.741 [main] DEBUG c.l.TrivialMain - hello world number4
2017-02-21 11:07:03.741 [main] WARN  c.l.TrivialMain - a warning message 5
2017-02-21 11:07:03.741 [main] ERROR c.l.TrivialMain - Finish off with fireworks

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!