Skip to main content

Using a logback configuration for the Talend Data Preparation log files

If you want to enable a more advanced logging configuration, you will need to specify a logback.xml file in the application.properties file.

This logback.xml file containing your configuration is specified using the logging.config=<path-to-config-file> property.

Example of a logback configuration to set the logging to the DEBUG level:

<configuration>

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <!-- encoders are assigned the type
         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <root level="debug">
    <appender-ref ref="STDOUT" />
  </root>
</configuration>

For more information, see the documentation on the Logback file configuration and the Spring logging system.

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!