nacos-logback.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 1999-2018 Alibaba Group Holding Ltd.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <configuration scan="true" scanPeriod="10 seconds">
  18. <springProperty scope="context" name="logPath" source="nacos.logs.path" defaultValue="${nacos.home}/logs"/>
  19. <property name="LOG_HOME" value="${logPath}"/>
  20. <appender name="cmdb-main"
  21. class="ch.qos.logback.core.rolling.RollingFileAppender">
  22. <file>${nacos.home}/logs/cmdb-main.log</file>
  23. <append>true</append>
  24. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  25. <fileNamePattern>${nacos.home}/logs/cmdb-main.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  26. <maxFileSize>2GB</maxFileSize>
  27. <maxHistory>7</maxHistory>
  28. <totalSizeCap>7GB</totalSizeCap>
  29. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  30. </rollingPolicy>
  31. <encoder>
  32. <Pattern>%date %level %msg%n%n</Pattern>
  33. <charset>UTF-8</charset>
  34. </encoder>
  35. </appender>
  36. <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
  37. <encoder>
  38. <Pattern>%date %level %msg%n%n</Pattern>
  39. <charset>UTF-8</charset>
  40. </encoder>
  41. </appender>
  42. <appender name="naming-server"
  43. class="ch.qos.logback.core.rolling.RollingFileAppender">
  44. <file>${LOG_HOME}/naming-server.log</file>
  45. <append>true</append>
  46. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  47. <fileNamePattern>${LOG_HOME}/naming-server.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  48. <maxFileSize>1GB</maxFileSize>
  49. <maxHistory>7</maxHistory>
  50. <totalSizeCap>7GB</totalSizeCap>
  51. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  52. </rollingPolicy>
  53. <encoder>
  54. <Pattern>%date %level %msg%n%n</Pattern>
  55. <charset>UTF-8</charset>
  56. </encoder>
  57. </appender>
  58. <appender name="async-naming-server" class="ch.qos.logback.classic.AsyncAppender">
  59. <discardingThreshold>0</discardingThreshold>
  60. <queueSize>1024</queueSize>
  61. <neverBlock>true</neverBlock>
  62. <appender-ref ref="naming-server"/>
  63. </appender>
  64. <appender name="naming-raft"
  65. class="ch.qos.logback.core.rolling.RollingFileAppender">
  66. <file>${LOG_HOME}/naming-raft.log</file>
  67. <append>true</append>
  68. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  69. <fileNamePattern>${LOG_HOME}/naming-raft.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  70. <maxFileSize>1GB</maxFileSize>
  71. <maxHistory>7</maxHistory>
  72. <totalSizeCap>3GB</totalSizeCap>
  73. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  74. </rollingPolicy>
  75. <encoder>
  76. <Pattern>%date %level %msg%n%n</Pattern>
  77. <charset>UTF-8</charset>
  78. </encoder>
  79. </appender>
  80. <appender name="async-naming-raft" class="ch.qos.logback.classic.AsyncAppender">
  81. <discardingThreshold>0</discardingThreshold>
  82. <queueSize>1024</queueSize>
  83. <neverBlock>true</neverBlock>
  84. <appender-ref ref="naming-raft"/>
  85. </appender>
  86. <appender name="naming-distro"
  87. class="ch.qos.logback.core.rolling.RollingFileAppender">
  88. <file>${LOG_HOME}/naming-distro.log</file>
  89. <append>true</append>
  90. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  91. <fileNamePattern>${LOG_HOME}/naming-distro.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  92. <maxFileSize>1GB</maxFileSize>
  93. <maxHistory>7</maxHistory>
  94. <totalSizeCap>3GB</totalSizeCap>
  95. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  96. </rollingPolicy>
  97. <encoder>
  98. <Pattern>%date %level %msg%n%n</Pattern>
  99. <charset>UTF-8</charset>
  100. </encoder>
  101. </appender>
  102. <appender name="async-naming-distro" class="ch.qos.logback.classic.AsyncAppender">
  103. <discardingThreshold>0</discardingThreshold>
  104. <queueSize>1024</queueSize>
  105. <neverBlock>true</neverBlock>
  106. <appender-ref ref="naming-distro"/>
  107. </appender>
  108. <appender name="naming-event"
  109. class="ch.qos.logback.core.rolling.RollingFileAppender">
  110. <file>${LOG_HOME}/naming-event.log</file>
  111. <append>true</append>
  112. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  113. <fileNamePattern>${LOG_HOME}/naming-event.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  114. <maxFileSize>1GB</maxFileSize>
  115. <maxHistory>7</maxHistory>
  116. <totalSizeCap>3GB</totalSizeCap>
  117. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  118. </rollingPolicy>
  119. <encoder>
  120. <Pattern>%date %level %msg%n%n</Pattern>
  121. <charset>UTF-8</charset>
  122. </encoder>
  123. </appender>
  124. <appender name="async-naming-event" class="ch.qos.logback.classic.AsyncAppender">
  125. <discardingThreshold>0</discardingThreshold>
  126. <queueSize>1024</queueSize>
  127. <neverBlock>true</neverBlock>
  128. <appender-ref ref="naming-event"/>
  129. </appender>
  130. <appender name="naming-push"
  131. class="ch.qos.logback.core.rolling.RollingFileAppender">
  132. <file>${LOG_HOME}/naming-push.log</file>
  133. <append>true</append>
  134. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  135. <fileNamePattern>${LOG_HOME}/naming-push.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  136. <maxFileSize>1GB</maxFileSize>
  137. <maxHistory>7</maxHistory>
  138. <totalSizeCap>3GB</totalSizeCap>
  139. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  140. </rollingPolicy>
  141. <encoder>
  142. <Pattern>%date %level %msg%n%n</Pattern>
  143. <charset>UTF-8</charset>
  144. </encoder>
  145. </appender>
  146. <appender name="naming-rt"
  147. class="ch.qos.logback.core.rolling.RollingFileAppender">
  148. <file>${LOG_HOME}/naming-rt.log</file>
  149. <append>true</append>
  150. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  151. <fileNamePattern>${LOG_HOME}/naming-rt.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  152. <maxFileSize>1GB</maxFileSize>
  153. <maxHistory>7</maxHistory>
  154. <totalSizeCap>3GB</totalSizeCap>
  155. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  156. </rollingPolicy>
  157. <encoder>
  158. <Pattern>%msg%n</Pattern>
  159. <charset>UTF-8</charset>
  160. </encoder>
  161. </appender>
  162. <appender name="naming-performance"
  163. class="ch.qos.logback.core.rolling.RollingFileAppender">
  164. <file>${LOG_HOME}/naming-performance.log</file>
  165. <append>true</append>
  166. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  167. <fileNamePattern>${LOG_HOME}/naming-performance.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  168. <maxFileSize>1GB</maxFileSize>
  169. <maxHistory>7</maxHistory>
  170. <totalSizeCap>3GB</totalSizeCap>
  171. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  172. </rollingPolicy>
  173. <encoder>
  174. <Pattern>%date %level %msg%n%n</Pattern>
  175. <charset>UTF-8</charset>
  176. </encoder>
  177. </appender>
  178. <!--config module logback config-->
  179. <appender name="dumpFile"
  180. class="ch.qos.logback.core.rolling.RollingFileAppender">
  181. <file>${LOG_HOME}/config-dump.log</file>
  182. <append>true</append>
  183. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  184. <fileNamePattern>${LOG_HOME}/config-dump.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  185. <maxFileSize>2GB</maxFileSize>
  186. <maxHistory>7</maxHistory>
  187. <totalSizeCap>7GB</totalSizeCap>
  188. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  189. </rollingPolicy>
  190. <encoder>
  191. <Pattern>%date %level %msg%n%n</Pattern>
  192. <charset>UTF-8</charset>
  193. </encoder>
  194. </appender>
  195. <appender name="pullFile"
  196. class="ch.qos.logback.core.rolling.RollingFileAppender">
  197. <file>${LOG_HOME}/config-pull.log</file>
  198. <append>true</append>
  199. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  200. <fileNamePattern>${LOG_HOME}/config-pull.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  201. <maxFileSize>20MB</maxFileSize>
  202. <maxHistory>7</maxHistory>
  203. <totalSizeCap>128MB</totalSizeCap>
  204. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  205. </rollingPolicy>
  206. <encoder>
  207. <Pattern>%date %level %msg%n%n</Pattern>
  208. <charset>UTF-8</charset>
  209. </encoder>
  210. </appender>
  211. <appender name="fatalFile"
  212. class="ch.qos.logback.core.rolling.RollingFileAppender">
  213. <file>${LOG_HOME}/config-fatal.log</file>
  214. <append>true</append>
  215. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  216. <fileNamePattern>${LOG_HOME}/config-fatal.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  217. <maxFileSize>20MB</maxFileSize>
  218. <maxHistory>7</maxHistory>
  219. <totalSizeCap>128MB</totalSizeCap>
  220. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  221. </rollingPolicy>
  222. <encoder>
  223. <Pattern>%date %level %msg%n%n</Pattern>
  224. <charset>UTF-8</charset>
  225. </encoder>
  226. </appender>
  227. <appender name="memoryFile"
  228. class="ch.qos.logback.core.rolling.RollingFileAppender">
  229. <file>${LOG_HOME}/config-memory.log</file>
  230. <append>true</append>
  231. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  232. <fileNamePattern>${LOG_HOME}/config-memory.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  233. <maxFileSize>20MB</maxFileSize>
  234. <maxHistory>7</maxHistory>
  235. <totalSizeCap>128MB</totalSizeCap>
  236. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  237. </rollingPolicy>
  238. <encoder>
  239. <Pattern>%date %level %msg%n%n</Pattern>
  240. <charset>UTF-8</charset>
  241. </encoder>
  242. </appender>
  243. <appender name="pullCheckFile"
  244. class="ch.qos.logback.core.rolling.RollingFileAppender">
  245. <file>${LOG_HOME}/config-pull-check.log</file>
  246. <append>true</append>
  247. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  248. <fileNamePattern>${LOG_HOME}/config-pull-check.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  249. <maxFileSize>1GB</maxFileSize>
  250. <maxHistory>7</maxHistory>
  251. <totalSizeCap>3GB</totalSizeCap>
  252. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  253. </rollingPolicy>
  254. <encoder>
  255. <Pattern>%msg%n</Pattern>
  256. <charset>UTF-8</charset>
  257. </encoder>
  258. </appender>
  259. <appender name="clientLog"
  260. class="ch.qos.logback.core.rolling.RollingFileAppender">
  261. <file>${LOG_HOME}/config-client-request.log</file>
  262. <append>true</append>
  263. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  264. <fileNamePattern>${LOG_HOME}/config-client-request.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  265. <maxFileSize>2GB</maxFileSize>
  266. <maxHistory>7</maxHistory>
  267. <totalSizeCap>7GB</totalSizeCap>
  268. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  269. </rollingPolicy>
  270. <encoder>
  271. <Pattern>%date|%msg%n</Pattern>
  272. <charset>UTF-8</charset>
  273. </encoder>
  274. </appender>
  275. <appender name="traceLog"
  276. class="ch.qos.logback.core.rolling.RollingFileAppender">
  277. <file>${LOG_HOME}/config-trace.log</file>
  278. <append>true</append>
  279. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  280. <fileNamePattern>${LOG_HOME}/config-trace.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  281. <maxFileSize>2GB</maxFileSize>
  282. <maxHistory>7</maxHistory>
  283. <totalSizeCap>7GB</totalSizeCap>
  284. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  285. </rollingPolicy>
  286. <encoder>
  287. <Pattern>%date|%msg%n</Pattern>
  288. <charset>UTF-8</charset>
  289. </encoder>
  290. </appender>
  291. <appender name="notifyLog"
  292. class="ch.qos.logback.core.rolling.RollingFileAppender">
  293. <file>${LOG_HOME}/config-notify.log</file>
  294. <append>true</append>
  295. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  296. <fileNamePattern>${LOG_HOME}/config-notify.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  297. <maxFileSize>1GB</maxFileSize>
  298. <maxHistory>7</maxHistory>
  299. <totalSizeCap>3GB</totalSizeCap>
  300. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  301. </rollingPolicy>
  302. <encoder>
  303. <Pattern>%date %level %msg%n%n</Pattern>
  304. <charset>UTF-8</charset>
  305. </encoder>
  306. </appender>
  307. <appender name="startLog"
  308. class="ch.qos.logback.core.rolling.RollingFileAppender">
  309. <file>${LOG_HOME}/config-server.log</file>
  310. <append>true</append>
  311. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  312. <fileNamePattern>${LOG_HOME}/config-server.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  313. <maxFileSize>50MB</maxFileSize>
  314. <maxHistory>7</maxHistory>
  315. <totalSizeCap>512MB</totalSizeCap>
  316. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  317. </rollingPolicy>
  318. <encoder>
  319. <Pattern>%date %level %msg%n%n</Pattern>
  320. <charset>UTF-8</charset>
  321. </encoder>
  322. </appender>
  323. <appender name="rootFile"
  324. class="ch.qos.logback.core.rolling.RollingFileAppender">
  325. <file>${LOG_HOME}/nacos.log</file>
  326. <append>true</append>
  327. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  328. <fileNamePattern>${LOG_HOME}/nacos.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  329. <maxFileSize>50MB</maxFileSize>
  330. <maxHistory>7</maxHistory>
  331. <totalSizeCap>512MB</totalSizeCap>
  332. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  333. </rollingPolicy>
  334. <encoder>
  335. <Pattern>%date %level %msg%n%n</Pattern>
  336. <charset>UTF-8</charset>
  337. </encoder>
  338. </appender>
  339. <appender name="nacos-address"
  340. class="ch.qos.logback.core.rolling.RollingFileAppender">
  341. <file>${LOG_HOME}/nacos-address.log</file>
  342. <append>true</append>
  343. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  344. <fileNamePattern>${LOG_HOME}/nacos-address.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  345. <maxFileSize>2GB</maxFileSize>
  346. <maxHistory>7</maxHistory>
  347. <totalSizeCap>7GB</totalSizeCap>
  348. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  349. </rollingPolicy>
  350. <encoder>
  351. <Pattern>%date %level %msg%n%n</Pattern>
  352. <charset>UTF-8</charset>
  353. </encoder>
  354. </appender>
  355. <appender name="istio-main"
  356. class="ch.qos.logback.core.rolling.RollingFileAppender">
  357. <file>${LOG_HOME}/istio-main.log</file>
  358. <append>true</append>
  359. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  360. <fileNamePattern>${LOG_HOME}/istio-main.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  361. <maxFileSize>2GB</maxFileSize>
  362. <maxHistory>7</maxHistory>
  363. <totalSizeCap>7GB</totalSizeCap>
  364. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  365. </rollingPolicy>
  366. <encoder>
  367. <Pattern>%date %level %msg%n%n</Pattern>
  368. <charset>UTF-8</charset>
  369. </encoder>
  370. </appender>
  371. <appender name="core-auth"
  372. class="ch.qos.logback.core.rolling.RollingFileAppender">
  373. <file>${LOG_HOME}/core-auth.log</file>
  374. <append>true</append>
  375. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  376. <fileNamePattern>${LOG_HOME}/core-auth.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  377. <maxFileSize>2GB</maxFileSize>
  378. <maxHistory>7</maxHistory>
  379. <totalSizeCap>7GB</totalSizeCap>
  380. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  381. </rollingPolicy>
  382. <encoder>
  383. <Pattern>%date %level %msg%n%n</Pattern>
  384. <charset>UTF-8</charset>
  385. </encoder>
  386. </appender>
  387. <appender name="protocol-raft"
  388. class="ch.qos.logback.core.rolling.RollingFileAppender">
  389. <file>${LOG_HOME}/protocol-raft.log</file>
  390. <append>true</append>
  391. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  392. <fileNamePattern>${LOG_HOME}/protocol-raft.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  393. <maxFileSize>2GB</maxFileSize>
  394. <maxHistory>7</maxHistory>
  395. <totalSizeCap>7GB</totalSizeCap>
  396. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  397. </rollingPolicy>
  398. <encoder>
  399. <Pattern>%date %level %msg%n%n</Pattern>
  400. <charset>UTF-8</charset>
  401. </encoder>
  402. </appender>
  403. <appender name="protocol-distro"
  404. class="ch.qos.logback.core.rolling.RollingFileAppender">
  405. <file>${LOG_HOME}/protocol-distro.log</file>
  406. <append>true</append>
  407. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  408. <fileNamePattern>${LOG_HOME}/protocol-distro.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  409. <maxFileSize>2GB</maxFileSize>
  410. <maxHistory>7</maxHistory>
  411. <totalSizeCap>7GB</totalSizeCap>
  412. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  413. </rollingPolicy>
  414. <encoder>
  415. <Pattern>%date %level %msg%n%n</Pattern>
  416. <charset>UTF-8</charset>
  417. </encoder>
  418. </appender>
  419. <appender name="nacos-cluster"
  420. class="ch.qos.logback.core.rolling.RollingFileAppender">
  421. <file>${LOG_HOME}/nacos-cluster.log</file>
  422. <append>true</append>
  423. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  424. <fileNamePattern>${LOG_HOME}/nacos-cluster.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  425. <maxFileSize>2GB</maxFileSize>
  426. <maxHistory>7</maxHistory>
  427. <totalSizeCap>7GB</totalSizeCap>
  428. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  429. </rollingPolicy>
  430. <encoder>
  431. <Pattern>%date %level %msg%n%n</Pattern>
  432. <charset>UTF-8</charset>
  433. </encoder>
  434. </appender>
  435. <appender name="alipay-jraft"
  436. class="ch.qos.logback.core.rolling.RollingFileAppender">
  437. <file>${LOG_HOME}/alipay-jraft.log</file>
  438. <append>true</append>
  439. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  440. <fileNamePattern>${LOG_HOME}/alipay-jraft.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  441. <maxFileSize>2GB</maxFileSize>
  442. <maxHistory>7</maxHistory>
  443. <totalSizeCap>7GB</totalSizeCap>
  444. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  445. </rollingPolicy>
  446. <encoder>
  447. <Pattern>%date %level %msg%n%n</Pattern>
  448. <charset>UTF-8</charset>
  449. </encoder>
  450. </appender>
  451. <!--TPS control -->
  452. <appender name="tps-control"
  453. class="ch.qos.logback.core.rolling.RollingFileAppender">
  454. <file>${LOG_HOME}/tps-control.log</file>
  455. <append>true</append>
  456. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  457. <fileNamePattern>${LOG_HOME}/tps-control.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  458. <maxFileSize>2GB</maxFileSize>
  459. <maxHistory>7</maxHistory>
  460. <totalSizeCap>7GB</totalSizeCap>
  461. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  462. </rollingPolicy>
  463. <encoder>
  464. <Pattern>%date %level %msg%n%n</Pattern>
  465. <charset>UTF-8</charset>
  466. </encoder>
  467. </appender>
  468. <appender name="tps-control-digest"
  469. class="ch.qos.logback.core.rolling.RollingFileAppender">
  470. <file>${LOG_HOME}/tps-control-digest.log</file>
  471. <append>true</append>
  472. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  473. <fileNamePattern>${LOG_HOME}/tps-control-digest.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  474. <maxFileSize>2GB</maxFileSize>
  475. <maxHistory>7</maxHistory>
  476. <totalSizeCap>7GB</totalSizeCap>
  477. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  478. </rollingPolicy>
  479. <encoder>
  480. <Pattern>%date %level %msg%n%n</Pattern>
  481. <charset>UTF-8</charset>
  482. </encoder>
  483. </appender>
  484. <appender name="tps-control-detail"
  485. class="ch.qos.logback.core.rolling.RollingFileAppender">
  486. <file>${LOG_HOME}/tps-control-detail.log</file>
  487. <append>true</append>
  488. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  489. <fileNamePattern>${LOG_HOME}/tps-control-detail.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  490. <maxFileSize>2GB</maxFileSize>
  491. <maxHistory>7</maxHistory>
  492. <totalSizeCap>7GB</totalSizeCap>
  493. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  494. </rollingPolicy>
  495. <encoder>
  496. <Pattern>%date %level %msg%n%n</Pattern>
  497. <charset>UTF-8</charset>
  498. </encoder>
  499. </appender>
  500. <appender name="remote"
  501. class="ch.qos.logback.core.rolling.RollingFileAppender">
  502. <file>${LOG_HOME}/remote.log</file>
  503. <append>true</append>
  504. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  505. <fileNamePattern>${LOG_HOME}/remote.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  506. <maxFileSize>2GB</maxFileSize>
  507. <maxHistory>7</maxHistory>
  508. <totalSizeCap>7GB</totalSizeCap>
  509. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  510. </rollingPolicy>
  511. <encoder>
  512. <Pattern>%date %level %msg%n%n</Pattern>
  513. <charset>UTF-8</charset>
  514. </encoder>
  515. </appender>
  516. <appender name="remote-digest"
  517. class="ch.qos.logback.core.rolling.RollingFileAppender">
  518. <file>${LOG_HOME}/remote-digest.log</file>
  519. <append>true</append>
  520. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  521. <fileNamePattern>${LOG_HOME}/remote-digest.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  522. <maxFileSize>2GB</maxFileSize>
  523. <maxHistory>7</maxHistory>
  524. <totalSizeCap>7GB</totalSizeCap>
  525. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  526. </rollingPolicy>
  527. <encoder>
  528. <Pattern>%date %level %msg%n%n</Pattern>
  529. <charset>UTF-8</charset>
  530. </encoder>
  531. </appender>
  532. <appender name="remote-push"
  533. class="ch.qos.logback.core.rolling.RollingFileAppender">
  534. <file>${LOG_HOME}/remote-push.log</file>
  535. <append>true</append>
  536. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  537. <fileNamePattern>${LOG_HOME}/remote-push.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  538. <maxFileSize>2GB</maxFileSize>
  539. <maxHistory>7</maxHistory>
  540. <totalSizeCap>7GB</totalSizeCap>
  541. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  542. </rollingPolicy>
  543. <encoder>
  544. <Pattern>%date %level %msg%n%n</Pattern>
  545. <charset>UTF-8</charset>
  546. </encoder>
  547. </appender>
  548. <appender name="nacos-persistence"
  549. class="ch.qos.logback.core.rolling.RollingFileAppender">
  550. <file>${LOG_HOME}/nacos-persistence.log</file>
  551. <append>true</append>
  552. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  553. <fileNamePattern>${LOG_HOME}/nacos-persistence.log.%d{yyyy-MM-dd}.%i</fileNamePattern>
  554. <maxFileSize>2GB</maxFileSize>
  555. <maxHistory>7</maxHistory>
  556. <totalSizeCap>7GB</totalSizeCap>
  557. <cleanHistoryOnStart>true</cleanHistoryOnStart>
  558. </rollingPolicy>
  559. <encoder>
  560. <Pattern>%date %level %msg%n%n</Pattern>
  561. <charset>UTF-8</charset>
  562. </encoder>
  563. </appender>
  564. <logger name="com.alibaba.nacos.address.main" additivity="false">
  565. <level value="INFO"/>
  566. <appender-ref ref="nacos-address"/>
  567. </logger>
  568. <logger name="com.alibaba.nacos.cmdb.main" additivity="false">
  569. <level value="INFO"/>
  570. <appender-ref ref="cmdb-main"/>
  571. </logger>
  572. <logger name="com.alibaba.nacos.core.remote" additivity="false">
  573. <level value="DEBUG"/>
  574. <appender-ref ref="remote"/>
  575. </logger>
  576. <logger name="com.alibaba.nacos.core.remote.push" additivity="false">
  577. <level value="DEBUG"/>
  578. <appender-ref ref="remote-push"/>
  579. </logger>
  580. <logger name="com.alibaba.nacos.core.remote.digest" additivity="false">
  581. <level value="DEBUG"/>
  582. <appender-ref ref="remote-digest"/>
  583. </logger>
  584. <!-- TPS Control-->
  585. <logger name="com.alibaba.nacos.core.remote.control.digest" additivity="false">
  586. <level value="DEBUG"/>
  587. <appender-ref ref="tps-control-digest"/>
  588. </logger>
  589. <logger name="com.alibaba.nacos.core.remote.control.detail" additivity="false">
  590. <level value="DEBUG"/>
  591. <appender-ref ref="tps-control-detail"/>
  592. </logger>
  593. <logger name="com.alibaba.nacos.core.remote.control" additivity="false">
  594. <level value="DEBUG"/>
  595. <appender-ref ref="tps-control"/>
  596. </logger>
  597. <logger name="com.alibaba.nacos.naming.main" additivity="false">
  598. <level value="INFO"/>
  599. <appender-ref ref="async-naming-server"/>
  600. </logger>
  601. <logger name="com.alibaba.nacos.naming.raft" additivity="false">
  602. <level value="INFO"/>
  603. <appender-ref ref="async-naming-raft"/>
  604. </logger>
  605. <logger name="com.alibaba.nacos.naming.distro" additivity="false">
  606. <level value="INFO"/>
  607. <appender-ref ref="async-naming-distro"/>
  608. </logger>
  609. <logger name="com.alibaba.nacos.naming.event" additivity="false">
  610. <level value="INFO"/>
  611. <appender-ref ref="async-naming-event"/>
  612. </logger>
  613. <logger name="com.alibaba.nacos.naming.push" additivity="false">
  614. <level value="INFO"/>
  615. <appender-ref ref="naming-push"/>
  616. </logger>
  617. <logger name="com.alibaba.nacos.naming.rt" additivity="false">
  618. <level value="INFO"/>
  619. <appender-ref ref="naming-rt"/>
  620. </logger>
  621. <logger name="com.alibaba.nacos.naming.performance" additivity="false">
  622. <level value="INFO"/>
  623. <appender-ref ref="naming-performance"/>
  624. </logger>
  625. <logger name="com.alibaba.nacos.config.dumpLog" additivity="false">
  626. <level value="INFO"/>
  627. <appender-ref ref="dumpFile"/>
  628. </logger>
  629. <logger name="com.alibaba.nacos.config.pullLog" additivity="false">
  630. <level value="INFO"/>
  631. <appender-ref ref="pullFile"/>
  632. </logger>
  633. <logger name="com.alibaba.nacos.config.pullCheckLog" additivity="false">
  634. <level value="INFO"/>
  635. <appender-ref ref="pullCheckFile"/>
  636. </logger>
  637. <logger name="com.alibaba.nacos.config.fatal" additivity="false">
  638. <level value="INFO"/>
  639. <appender-ref ref="fatalFile"/>
  640. </logger>
  641. <logger name="com.alibaba.nacos.config.monitorLog" additivity="false">
  642. <level value="INFO"/>
  643. <appender-ref ref="memoryFile"/>
  644. </logger>
  645. <logger name="com.alibaba.nacos.config.clientLog" additivity="false">
  646. <level value="info"/>
  647. <appender-ref ref="clientLog"/>
  648. </logger>
  649. <logger name="com.alibaba.nacos.config.notifyLog" additivity="false">
  650. <level value="INFO"/>
  651. <appender-ref ref="notifyLog"/>
  652. </logger>
  653. <logger name="com.alibaba.nacos.config.traceLog" additivity="false">
  654. <level value="info"/>
  655. <appender-ref ref="traceLog"/>
  656. </logger>
  657. <logger name="com.alibaba.nacos.config.startLog" additivity="false">
  658. <level value="INFO"/>
  659. <appender-ref ref="startLog"/>
  660. </logger>
  661. <logger name="com.alibaba.nacos.istio.main" additivity="false">
  662. <level value="DEBUG"/>
  663. <appender-ref ref="istio-main"/>
  664. </logger>
  665. <logger name="com.alibaba.nacos.core.auth" additivity="false">
  666. <level value="DEBUG"/>
  667. <appender-ref ref="core-auth"/>
  668. </logger>
  669. <logger name="com.alibaba.nacos.core.protocol.raft" additivity="false">
  670. <level value="INFO"/>
  671. <appender-ref ref="protocol-raft"/>
  672. </logger>
  673. <logger name="com.alipay.sofa.jraft" additivity="false">
  674. <level value="INFO"/>
  675. <appender-ref ref="alipay-jraft"/>
  676. </logger>
  677. <logger name="com.alibaba.nacos.core.protocol.distro" additivity="false">
  678. <level value="INFO"/>
  679. <appender-ref ref="protocol-distro"/>
  680. </logger>
  681. <logger name="com.alibaba.nacos.core.cluster" additivity="false">
  682. <level value="INFO"/>
  683. <appender-ref ref="nacos-cluster"/>
  684. </logger>
  685. <logger name="com.alibaba.nacos.persistence" additivity="false">
  686. <level value="INFO"/>
  687. <appender-ref ref="nacos-persistence"/>
  688. </logger>
  689. <springProfile name="standalone">
  690. <logger name="org.springframework">
  691. <appender-ref ref="CONSOLE"/>
  692. <level value="INFO"/>
  693. </logger>
  694. <logger name="org.apache.catalina.startup.DigesterFactory">
  695. <appender-ref ref="CONSOLE"/>
  696. <level value="INFO"/>
  697. </logger>
  698. <logger name="org.apache.catalina.util.LifecycleBase">
  699. <appender-ref ref="CONSOLE"/>
  700. <level value="ERROR"/>
  701. </logger>
  702. <logger name="org.apache.coyote.http11.Http11NioProtocol">
  703. <appender-ref ref="CONSOLE"/>
  704. <level value="WARN"/>
  705. </logger>
  706. <logger name="org.apache.tomcat.util.net.NioSelectorPool">
  707. <appender-ref ref="CONSOLE"/>
  708. <level value="WARN"/>
  709. </logger>
  710. </springProfile>
  711. <logger name="com.alibaba.nacos.core.listener.StartingApplicationListener">
  712. <appender-ref ref="CONSOLE"/>
  713. <level value="INFO"/>
  714. </logger>
  715. <logger name="com.alibaba.nacos.common.notify.NotifyCenter">
  716. <appender-ref ref="CONSOLE"/>
  717. <level value="INFO"/>
  718. </logger>
  719. <logger name="com.alibaba.nacos.sys.file.WatchFileCenter">
  720. <appender-ref ref="CONSOLE"/>
  721. <level value="INFO"/>
  722. </logger>
  723. <logger name="com.alibaba.nacos.common.executor.ThreadPoolManager">
  724. <appender-ref ref="CONSOLE"/>
  725. <level value="INFO"/>
  726. </logger>
  727. <root>
  728. <level value="INFO"/>
  729. <appender-ref ref="rootFile"/>
  730. </root>
  731. </configuration>