xml SDL Tridion 2011/2013 SmartTarget的CD logback配置示例。我用它来解决开发现状上的SmartTarget问题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml SDL Tridion 2011/2013 SmartTarget的CD logback配置示例。我用它来解决开发现状上的SmartTarget问题相关的知识,希望对你有一定的参考价值。
<?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/tnwin/tnsmart/log"/>
<property name="log.level" value="INFO"/>
<!-- Appenders -->
<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>
<appender name="rollingSmartTargetLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.folder}/smarttarget.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>${log.history}</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<prudent>true</prudent>
</appender>
<!-- Loggers -->
<!-- Custom cartridge -->
<logger name="com.mycompanyname..tridion.somecustomcartridge" level="${log.level}">
<appender-ref ref="rollingSmartTargetLog"/>
</logger>
<!-- Tridion SmartTarget -->
<logger name="com.tridion.smarttarget" level="${log.level}">
<appender-ref ref="rollingSmartTargetLog"/>
</logger>
<!-- SmartTarget .Net logs through Juggernet -->
<logger name="Tridion.SmartTarget" level="${log.level}">
<appender-ref ref="rollingSmartTargetLog"/>
</logger>
<!-- Tridion AmbientDataFramework -->
<logger name="com.tridion.ambientdata" level="${log.level}">
<appender-ref ref="rollingSmartTargetLog"/>
</logger>
<logger name="com.tridion.smarttarget.ambientdata" level="${log.level}">
<appender-ref ref="rollingSmartTargetLog"/>
</logger>
<!-- Standard Tridion loggers -->
<logger name="com.tridion" level="${log.level}"/>
<root level="OFF">
<appender-ref ref="rollingCoreLog"/>
</root>
</configuration>
以上是关于xml SDL Tridion 2011/2013 SmartTarget的CD logback配置示例。我用它来解决开发现状上的SmartTarget问题的主要内容,如果未能解决你的问题,请参考以下文章
xml SDL Tridion内容交付日志配置。
xml SDL Tridion内容交付日志配置。
xml SDL Tridion Sites 9和DXA 2.1富文本字段XSLT
xml 适用于SDL Tridion ADF的IPv6兼容IP白名单
xml 适用于SDL Tridion ADF的IPv6兼容IP白名单
xml SDL Tridion 2013 SP1中cd_storage_conf.xml的项类型映射示例