Documentation Center

Configuring logging

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.

Procedure

  1. Open the file logback.xml, located in the config subdirectory of your Content Delivery root location, in a plain-text editor or XML editor.
  2. In the <!-- Appenders --> section, add the following:
    <appender name="rollingAudiencemanagerLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
    	<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
    		<fileNamePattern>${log.folder}/sync_audiencemanager.%d{yyyy-MM-dd}.log</fileNamePattern>
    		<maxHistory>${log.history}</maxHistory>
    	</rollingPolicy>
    	<encoder>
    		<pattern>${log.pattern}</pattern>
    	</encoder>
    	<prudent>true</prudent>
    </appender>
  3. In the <!-- Loggers --> section, add the following:
    <logger name="com.tridion.marketingsolution">
    	<appender-ref ref="rollingAudiencemanagerLog"/>
    </logger>
  4. Save and close logback.xml.

What to do next

For information on changing the logging level, the location to log to, the number of log files and the name of log files, see Configuring logging on the Content Delivery server.