Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Last active January 3, 2016 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhorsman/8419553 to your computer and use it in GitHub Desktop.
Save jhorsman/8419553 to your computer and use it in GitHub Desktop.
SDL Tridion 2013 SP1 Content Delivery Logback configuration example from installation media. This is the part of the logback.xml which you would effectively use on a presentation server. The following loggers are removed from this example: rollingTransportLog, rollingDeployerLog, rollingMonitorLog, rollingSessionPreviewLog
<appender name="rollingContextLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.folder}/cd_context.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>${log.history}</maxHistory>
</rollingPolicy>
<encoder>
<charset>${log.encoding}</charset>
<pattern>${log.pattern}</pattern>
</encoder>
<prudent>true</prudent>
</appender>
...
<appender name="rollingCoreLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.folder}/cd_core.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>${log.history}</maxHistory>
</rollingPolicy>
<encoder>
<charset>${log.encoding}</charset>
<pattern>${log.pattern}</pattern>
</encoder>
<prudent>true</prudent>
</appender>
...
<logger name="com.tridion" level="${log.level}"/>
<logger name="com.sdl.context" level="${log.level}">
<appender-ref ref="rollingContextLog"/>
</logger>
<logger name="Tridion.ContentDelivery" level="${log.level}">
<appender-ref ref="rollingCoreLog"/>
</logger>
<root level="OFF">
<appender-ref ref="rollingCoreLog"/>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment