Documentation Center

Configuring logback.xml

The logback.xml file is the configuration file for the logback logging framework used by Content Delivery. This task describes how to update your existing logback.xml file.

About this task

Content Delivery uses the Logback logging framework.

Procedure

  1. Open the logback.xml file in a text editor.
  2. Add logging for Tracking to the logback.xml file as follows:
    <!-- Tracking log file -->
        <appender name="rollingTrackingLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
            <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
                <fileNamePattern>${log.folder}/tracking.%d{yyyy-MM-dd}.log</fileNamePattern>
                <maxHistory>${log.history}</maxHistory>
            </rollingPolicy>
            <encoder>
                <pattern>${log.pattern}</pattern>
            </encoder>
            <prudent>true</prudent>
        </appender>
        <!-- Route logging to file above -->
        <logger name="com.tridion.generic.tracking">
            <appender-ref ref="rollingTrackingLog"/>
        </logger>
    
  3. Save and close the file.
  4. Restart the Content Delivery service or Web application depending on how you installed Content Delivery.

What to do next