Authored by wangshusheng

打包

1 # ******************** bigData common configs ******************** 1 # ******************** bigData common configs ********************
2 # if true, client_security check may be disabled. 2 # if true, client_security check may be disabled.
3 is_debug_enable=true 3 is_debug_enable=true
4 -is_checksession_enable=false  
5 4
6 # ******************** client servers ******************** 5 # ******************** client servers ********************
7 # mac:ip:port:power(1:use, 0:no use, 30:capacity):speedMode(SPEED_FASTEST(0), SPEED_NORMAL(1), SPEED_POWERSAVE(2), SPEED_FULL_POWER(3)) 6 # mac:ip:port:power(1:use, 0:no use, 30:capacity):speedMode(SPEED_FASTEST(0), SPEED_NORMAL(1), SPEED_POWERSAVE(2), SPEED_FULL_POWER(3))
1 # ******************** bigData common configs ******************** 1 # ******************** bigData common configs ********************
2 # if true, client_security check may be disabled. 2 # if true, client_security check may be disabled.
3 is_debug_enable=${is_debug_enable} 3 is_debug_enable=${is_debug_enable}
4 -is_checksession_enable=${is_checksession_enable}  
5 4
6 # ******************** client servers ******************** 5 # ******************** client servers ********************
7 # mac:ip:port:power(1:use, 0:no use, 30:capacity):speedMode(SPEED_FASTEST(0), SPEED_NORMAL(1), SPEED_POWERSAVE(2), SPEED_FULL_POWER(3)) 6 # mac:ip:port:power(1:use, 0:no use, 30:capacity):speedMode(SPEED_FASTEST(0), SPEED_NORMAL(1), SPEED_POWERSAVE(2), SPEED_FULL_POWER(3))
@@ -16,32 +16,13 @@ @@ -16,32 +16,13 @@
16 </encoder> 16 </encoder>
17 </appender> 17 </appender>
18 18
19 - <appender name="RECOMMEND_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">  
20 - <file>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/recommend.log</file>  
21 - <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">  
22 - <!-- daily rollover -->  
23 - <fileNamePattern>  
24 - ${yoho.logs.basedir}/${yoho.bigData.env.namespace}/archived/recommend.%d{yyyy-MM-dd}.%i.log.gz  
25 - </fileNamePattern>  
26 - <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">  
27 - <!-- or whenever the file size reaches 100MB -->  
28 - <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>  
29 - </timeBasedFileNamingAndTriggeringPolicy>  
30 - <!-- keep 30 days' worth of history -->  
31 - <maxHistory>${yoho.logs.maxHistory}</maxHistory>  
32 - </rollingPolicy>  
33 - <encoder>  
34 - <pattern>%-1relative - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{0}:%line -- %msg%n</pattern>  
35 - </encoder>  
36 - </appender>  
37 -  
38 <!-- DEBUG级别日志 appender --> 19 <!-- DEBUG级别日志 appender -->
39 <appender name="DEBUG_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender"> 20 <appender name="DEBUG_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
40 21
41 - <file>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/debug.log</file> 22 + <file>${yoho.logs.basedir}/${yoho.rfid.env.namespace}/debug.log</file>
42 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 23 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
43 <!-- daily rollover --> 24 <!-- daily rollover -->
44 - <fileNamePattern>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/archived/debug.%d{yyyy-MM-dd}.%i.log.gz 25 + <fileNamePattern>${yoho.logs.basedir}/${yoho.rfid.env.namespace}/archived/debug.%d{yyyy-MM-dd}.%i.log.gz
45 </fileNamePattern> 26 </fileNamePattern>
46 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 27 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
47 <!-- or whenever the file size reaches 100MB --> 28 <!-- or whenever the file size reaches 100MB -->
@@ -56,35 +37,16 @@ @@ -56,35 +37,16 @@
56 </encoder> 37 </encoder>
57 </appender> 38 </appender>
58 39
59 - <!-- DEBUG级别日志 appender -->  
60 - <appender name="TRACE_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">  
61 - <file>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/trace.log</file>  
62 - <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">  
63 - <!-- daily rollover -->  
64 - <fileNamePattern>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/archived/trace.%d{yyyy-MM-dd}.%i.log.gz  
65 - </fileNamePattern>  
66 - <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">  
67 - <!-- or whenever the file size reaches 100MB -->  
68 - <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>  
69 - </timeBasedFileNamingAndTriggeringPolicy>  
70 - <!-- keep 30 days' worth of history -->  
71 - <maxHistory>${yoho.logs.maxHistory}</maxHistory>  
72 - </rollingPolicy>  
73 - <encoder>  
74 - <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS}|%X{X-B3-TraceId:-}|%X{X-B3-SpanId:-}|%X{X-Span-Export:-}|%thread|%msg%n</pattern>  
75 - </encoder>  
76 - </appender>  
77 -  
78 <!-- WARN、ERROR级别日志 appender --> 40 <!-- WARN、ERROR级别日志 appender -->
79 <appender name="WARN_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender"> 41 <appender name="WARN_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
80 - <file>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/warn-log.log</file> 42 + <file>${yoho.logs.basedir}/${yoho.rfid.env.namespace}/warn-log.log</file>
81 <!-- 过滤器,过滤掉 TRACE 和 DEBUG 和 INFO 级别的日志 --> 43 <!-- 过滤器,过滤掉 TRACE 和 DEBUG 和 INFO 级别的日志 -->
82 <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> 44 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
83 <level>WARN</level> 45 <level>WARN</level>
84 </filter> 46 </filter>
85 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 47 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
86 <!-- daily rollover --> 48 <!-- daily rollover -->
87 - <fileNamePattern>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/archived/warn.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern> 49 + <fileNamePattern>${yoho.logs.basedir}/${yoho.rfid.env.namespace}/archived/warn.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
88 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 50 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
89 <!-- or whenever the file size reaches 100MB --> 51 <!-- or whenever the file size reaches 100MB -->
90 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 52 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -97,54 +59,11 @@ @@ -97,54 +59,11 @@
97 </encoder> 59 </encoder>
98 </appender> 60 </appender>
99 61
100 -  
101 - <!-- 登录时,如果一个IP在一定时间内登录次数过多,记录日志 appender -->  
102 - <appender name="IP_LOGIN_MORE_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">  
103 - <file>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/IP_LOGIN_MORE_LOG.log</file>  
104 - <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">  
105 - <!-- daily rollover -->  
106 - <fileNamePattern>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/archived/IP_LOGIN_MORE_LOG.%d{yyyy-MM-dd}.%i.log.gz  
107 - </fileNamePattern>  
108 - <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">  
109 - <!-- or whenever the file size reaches 100MB -->  
110 - <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>  
111 - </timeBasedFileNamingAndTriggeringPolicy>  
112 - <!-- keep 30 days' worth of history -->  
113 - <maxHistory>${yoho.logs.maxHistory}</maxHistory>  
114 - </rollingPolicy>  
115 -  
116 - <encoder>  
117 - <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>  
118 - </encoder>  
119 - </appender>  
120 -  
121 -  
122 -  
123 - <appender name="SEARCH_STATIC_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">  
124 - <file>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/search_static_log.log</file>  
125 - <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">  
126 - <!-- daily rollover -->  
127 - <fileNamePattern>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/archived/search_static_log.%d{yyyy-MM-dd}.%i.log.gz  
128 - </fileNamePattern>  
129 - <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">  
130 - <!-- or whenever the file size reaches 100MB -->  
131 - <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>  
132 - </timeBasedFileNamingAndTriggeringPolicy>  
133 - <!-- keep 30 days' worth of history -->  
134 - <maxHistory>${yoho.logs.maxHistory}</maxHistory>  
135 - </rollingPolicy>  
136 -  
137 - <encoder>  
138 - <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>  
139 - </encoder>  
140 - </appender>  
141 -  
142 -  
143 <appender name="STATIC_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender"> 62 <appender name="STATIC_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
144 - <file>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/static_log.log</file> 63 + <file>${yoho.logs.basedir}/${yoho.rfid.env.namespace}/static_log.log</file>
145 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 64 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
146 <!-- daily rollover --> 65 <!-- daily rollover -->
147 - <fileNamePattern>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/archived/static_log.%d{yyyy-MM-dd}.%i.log.gz 66 + <fileNamePattern>${yoho.logs.basedir}/${yoho.rfid.env.namespace}/archived/static_log.%d{yyyy-MM-dd}.%i.log.gz
148 </fileNamePattern> 67 </fileNamePattern>
149 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 68 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
150 <!-- or whenever the file size reaches 100MB --> 69 <!-- or whenever the file size reaches 100MB -->
@@ -159,40 +78,8 @@ @@ -159,40 +78,8 @@
159 </encoder> 78 </encoder>
160 </appender> 79 </appender>
161 80
162 - <appender name="BLACK_USER_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">  
163 - <file>${yoho.logs.basedir}/${yoho.bigData.env.namespace}/blackUser.log</file>  
164 - <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">  
165 - <!-- daily rollover -->  
166 - <fileNamePattern>  
167 - ${yoho.logs.basedir}/${yoho.bigData.env.namespace}/archived/blackUser.%d{yyyy-MM-dd}.%i.log.gz  
168 - </fileNamePattern>  
169 - <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">  
170 - <!-- or whenever the file size reaches 100MB -->  
171 - <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>  
172 - </timeBasedFileNamingAndTriggeringPolicy>  
173 - <!-- keep 30 days' worth of history -->  
174 - <maxHistory>${yoho.logs.maxHistory}</maxHistory>  
175 - </rollingPolicy>  
176 - <encoder>  
177 - <pattern>%-1relative - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{0}:%line -- %msg%n</pattern>  
178 - </encoder>  
179 - </appender>  
180 -  
181 - <!-- 数据库操作日志 -->  
182 - <logger name="java.sql.PreparedStatement" value="${yoho.logs.level}"/>  
183 - <logger name="java.sql.Connection" value="${yoho.logs.level}"/>  
184 - <logger name="java.sql.Statement" value="${yoho.logs.level}"/>  
185 - <logger name="com.ibatis" value="${yoho.logs.level}"/>  
186 - <logger name="com.ibatis.common.jdbc.SimpleDataSource" value="${yoho.logs.level}"/>  
187 - <logger name="com.ibatis.common.jdbc.ScriptRunner" level="${yoho.logs.level}"/>  
188 - <logger name="com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate" value="${yoho.logs.level}"/>  
189 <logger name="org.springframework" level="INFO"/> 81 <logger name="org.springframework" level="INFO"/>
190 <logger name="org.apache.zookeeper.ClientCnxn" level="WARN"/> 82 <logger name="org.apache.zookeeper.ClientCnxn" level="WARN"/>
191 - <!-- resources -->  
192 - <logger name="TRACE" additivity="false">  
193 - <level value="TRACE"/>  
194 - <appender-ref ref="TRACE_LOG"/>  
195 - </logger>  
196 <!-- root级别 DEBUG --> 83 <!-- root级别 DEBUG -->
197 <root level="${yoho.logs.level}"> 84 <root level="${yoho.logs.level}">
198 <!-- 文件输出 --> 85 <!-- 文件输出 -->
@@ -200,10 +87,6 @@ @@ -200,10 +87,6 @@
200 <appender-ref ref="WARN_LOG"/> 87 <appender-ref ref="WARN_LOG"/>
201 </root> 88 </root>
202 89
203 - <!-- 登录时,如果一个IP在一定时间内登录次数过多,记录日志 appender -->  
204 - <logger name="ipLoginMoreLog" level="INFO" additivity="false">  
205 - <appender-ref ref="IP_LOGIN_MORE_LOG" />  
206 - </logger>  
207 90
208 <logger name="static_log" additivity="false"> 91 <logger name="static_log" additivity="false">
209 <level value="INFO"/> 92 <level value="INFO"/>
@@ -211,21 +94,4 @@ @@ -211,21 +94,4 @@
211 </logger> 94 </logger>
212 95
213 96
214 - <!-- payment BD 大数据采集 -->  
215 - <logger name="paymentBDLogger" additivity="true">  
216 - <level value="info"/>  
217 - <appender-ref ref="PAYMENTBD_LOG"/>  
218 - </logger>  
219 -  
220 -  
221 - <!-- 推荐位 大数据采集 -->  
222 - <logger name="recommendLogger" additivity="false">  
223 - <level value="INFO"/>  
224 - <appender-ref ref="RECOMMEND_LOG"/>  
225 - </logger>  
226 -  
227 - <logger name="blackUserLogger" additivity="true">  
228 - <level value="INFO"/>  
229 - <appender-ref ref="BLACK_USER_LOG"/>  
230 - </logger>  
231 </configuration> 97 </configuration>