...
|
...
|
@@ -90,7 +90,7 @@ |
|
|
<!-- 添加顶当时的日志 appender -->
|
|
|
<appender name="ADD_DINGDANG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
<fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/add_dingdang.log</fileNamePattern>
|
|
|
<fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/ADD_DINGDANG/ADD_DINGDANG.log</fileNamePattern>
|
|
|
<!-- 日志最大的保存天数 -->
|
|
|
<maxHistory>${maxHistory}</maxHistory>
|
|
|
</rollingPolicy>
|
...
|
...
|
@@ -105,7 +105,7 @@ |
|
|
<!-- 激活顶当时的日志 appender -->
|
|
|
<appender name="ACTIVE_DINGDANG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
<fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/active_dingdang.log</fileNamePattern>
|
|
|
<fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/ACTIVE_DINGDANG.log</fileNamePattern>
|
|
|
<!-- 日志最大的保存天数 -->
|
|
|
<maxHistory>${maxHistory}</maxHistory>
|
|
|
</rollingPolicy>
|
...
|
...
|
@@ -117,6 +117,21 @@ |
|
|
</encoder>
|
|
|
</appender>
|
|
|
|
|
|
<!-- 激活顶当时的日志 appender -->
|
|
|
<appender name="CLICK_UNION" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
<fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/CLICK_UNION.log</fileNamePattern>
|
|
|
<!-- 日志最大的保存天数 -->
|
|
|
<maxHistory>${maxHistory}</maxHistory>
|
|
|
</rollingPolicy>
|
|
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
|
|
<maxFileSize>${maxFileSize}</maxFileSize>
|
|
|
</triggeringPolicy>
|
|
|
<encoder>
|
|
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger:%line - %msg%n</pattern>
|
|
|
</encoder>
|
|
|
</appender>
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
@@ -159,4 +174,9 @@ |
|
|
<appender-ref ref="ACTIVE_DINGDANG" />
|
|
|
</logger>
|
|
|
|
|
|
<!-- 点击日志 appender -->
|
|
|
<logger name="clickUnion" level="INFO" additivity="false">
|
|
|
<appender-ref ref="CLICK_UNION" />
|
|
|
</logger>
|
|
|
|
|
|
</configuration> |
|
|
\ No newline at end of file |
...
|
...
|
|