Last active
March 19, 2018 13:16
-
-
Save jhorsman/7098411 to your computer and use it in GitHub Desktop.
SDL Tridion Content Delivery logging configuration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration scan="true"> | |
<!-- Properties --> | |
<property name="log.pattern" value="%date %-5level %logger{0} - %message%n"/> | |
<property name="log.history" value="7"/> | |
<property name="log.folder" value="/home/user/log"/> | |
<property name="log.level" value="INFO"/> | |
<!-- Appenders --> | |
<appender name="rollingTransportLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | |
<fileNamePattern>${log.folder}/cd_transport.%d{yyyy-MM-dd}.log</fileNamePattern> | |
<maxHistory>${log.history}</maxHistory> | |
</rollingPolicy> | |
<encoder> | |
<pattern>${log.pattern}</pattern> | |
</encoder> | |
<prudent>true</prudent> | |
</appender> | |
<appender name="rollingDeployerLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | |
<fileNamePattern>${log.folder}/cd_deployer.%d{yyyy-MM-dd}.log</fileNamePattern> | |
<maxHistory>${log.history}</maxHistory> | |
</rollingPolicy> | |
<encoder> | |
<pattern>${log.pattern}</pattern> | |
</encoder> | |
<prudent>true</prudent> | |
</appender> | |
<appender name="rollingMonitorLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | |
<fileNamePattern>${log.folder}/cd_monitor.%d{yyyy-MM-dd}.log</fileNamePattern> | |
<maxHistory>${log.history}</maxHistory> | |
</rollingPolicy> | |
<encoder> | |
<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> | |
<pattern>${log.pattern}</pattern> | |
</encoder> | |
<prudent>true</prudent> | |
</appender> | |
<!-- Custom appender --> | |
<appender name="rollingApplicationLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | |
<fileNamePattern>${log.folder}/your_app_name.%d{yyyy-MM-dd}.log</fileNamePattern> | |
<maxHistory>${log.history}</maxHistory> | |
</rollingPolicy> | |
<encoder> | |
<pattern>${log.pattern}</pattern> | |
</encoder> | |
<prudent>true</prudent> | |
</appender> | |
<!-- Loggers --> | |
<!-- Your custmom logger --> | |
<logger name="com.customername.tridion.application" level="${log.level}"> | |
<appender-ref ref="rollingApplicationLog"/> | |
</logger> | |
<!-- Standard Tridion loggers --> | |
<logger name="com.tridion" level="${log.level}"/> | |
<logger name="com.tridion.transport"> | |
<appender-ref ref="rollingTransportLog"/> | |
</logger> | |
<logger name="com.tridion.transport.HTTPSReceiverServlet"> | |
<appender-ref ref="rollingDeployerLog"/> | |
</logger> | |
<logger name="com.tridion.transport.transportpackage"> | |
<appender-ref ref="rollingDeployerLog"/> | |
</logger> | |
<logger name="com.tridion.transformer"> | |
<appender-ref ref="rollingDeployerLog"/> | |
</logger> | |
<logger name="com.tridion.deployer"> | |
<appender-ref ref="rollingDeployerLog"/> | |
</logger> | |
<logger name="com.tridion.tcdl"> | |
<appender-ref ref="rollingDeployerLog"/> | |
</logger> | |
<logger name="com.tridion.event"> | |
<appender-ref ref="rollingDeployerLog"/> | |
</logger> | |
<logger name="com.tridion.monitor"> | |
<appender-ref ref="rollingMonitorLog"/> | |
</logger> | |
<root level="OFF"> | |
<appender-ref ref="rollingCoreLog"/> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment