|
@@ -90,7 +90,7 @@ |
|
@@ -90,7 +90,7 @@ |
90
|
<!-- 添加顶当时的日志 appender -->
|
90
|
<!-- 添加顶当时的日志 appender -->
|
91
|
<appender name="ADD_DINGDANG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
91
|
<appender name="ADD_DINGDANG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
92
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
92
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
93
|
- <fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/add_dingdang.log</fileNamePattern>
|
93
|
+ <fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/ADD_DINGDANG/ADD_DINGDANG.log</fileNamePattern>
|
94
|
<!-- 日志最大的保存天数 -->
|
94
|
<!-- 日志最大的保存天数 -->
|
95
|
<maxHistory>${maxHistory}</maxHistory>
|
95
|
<maxHistory>${maxHistory}</maxHistory>
|
96
|
</rollingPolicy>
|
96
|
</rollingPolicy>
|
|
@@ -105,7 +105,7 @@ |
|
@@ -105,7 +105,7 @@ |
105
|
<!-- 激活顶当时的日志 appender -->
|
105
|
<!-- 激活顶当时的日志 appender -->
|
106
|
<appender name="ACTIVE_DINGDANG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
106
|
<appender name="ACTIVE_DINGDANG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
107
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
107
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
108
|
- <fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/active_dingdang.log</fileNamePattern>
|
108
|
+ <fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/ACTIVE_DINGDANG.log</fileNamePattern>
|
109
|
<!-- 日志最大的保存天数 -->
|
109
|
<!-- 日志最大的保存天数 -->
|
110
|
<maxHistory>${maxHistory}</maxHistory>
|
110
|
<maxHistory>${maxHistory}</maxHistory>
|
111
|
</rollingPolicy>
|
111
|
</rollingPolicy>
|
|
@@ -117,6 +117,21 @@ |
|
@@ -117,6 +117,21 @@ |
117
|
</encoder>
|
117
|
</encoder>
|
118
|
</appender>
|
118
|
</appender>
|
119
|
|
119
|
|
|
|
120
|
+ <!-- 激活顶当时的日志 appender -->
|
|
|
121
|
+ <appender name="CLICK_UNION" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
|
122
|
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
123
|
+ <fileNamePattern>${catalina.home}/logs/%d{yyyy-MM-dd}/CLICK_UNION.log</fileNamePattern>
|
|
|
124
|
+ <!-- 日志最大的保存天数 -->
|
|
|
125
|
+ <maxHistory>${maxHistory}</maxHistory>
|
|
|
126
|
+ </rollingPolicy>
|
|
|
127
|
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
|
|
128
|
+ <maxFileSize>${maxFileSize}</maxFileSize>
|
|
|
129
|
+ </triggeringPolicy>
|
|
|
130
|
+ <encoder>
|
|
|
131
|
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger:%line - %msg%n</pattern>
|
|
|
132
|
+ </encoder>
|
|
|
133
|
+ </appender>
|
|
|
134
|
+
|
120
|
|
135
|
|
121
|
|
136
|
|
122
|
|
137
|
|
|
@@ -159,4 +174,9 @@ |
|
@@ -159,4 +174,9 @@ |
159
|
<appender-ref ref="ACTIVE_DINGDANG" />
|
174
|
<appender-ref ref="ACTIVE_DINGDANG" />
|
160
|
</logger>
|
175
|
</logger>
|
161
|
|
176
|
|
|
|
177
|
+ <!-- 点击日志 appender -->
|
|
|
178
|
+ <logger name="clickUnion" level="INFO" additivity="false">
|
|
|
179
|
+ <appender-ref ref="CLICK_UNION" />
|
|
|
180
|
+ </logger>
|
|
|
181
|
+
|
162
|
</configuration> |
182
|
</configuration> |