差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
java:log4j2:appenders [2022/04/10 15:59]
tony
java:log4j2:appenders [2023/06/25 09:48] (目前版本)
行 40: 行 40:
   * **appender.logfile.strategy.fileIndex**:​ 我們使用fixed window的規則讓index最大只會到max。你也可以使用nomax不去限制最大index。   * **appender.logfile.strategy.fileIndex**:​ 我們使用fixed window的規則讓index最大只會到max。你也可以使用nomax不去限制最大index。
   * **appender.logfile.strategy.max**:​ 即index最大值設定。有max就會有min,min是用來指定最小index,如果你不喜歡從1-3,喜歡從2-3的話,那min就設2。   * **appender.logfile.strategy.max**:​ 即index最大值設定。有max就會有min,min是用來指定最小index,如果你不喜歡從1-3,喜歡從2-3的話,那min就設2。
 +===== RollingFileAppender with Size, Time and File Count conditions =====
 +這個是基於前一種RollingFileAppender多增加以時間為滾動條件的設定方式,但由於篇幅較多,請直接參考[[java:​log4j2:​timeandsizerollingappender|link]]內容。
 +
 ===== Reference ===== ===== Reference =====
   * [[https://​logging.apache.org/​log4j/​2.x/​manual/​appenders.html|官方Appender設定介紹]]   * [[https://​logging.apache.org/​log4j/​2.x/​manual/​appenders.html|官方Appender設定介紹]]
   * [[https://​logging.apache.org/​log4j/​2.x/​manual/​layouts.html|官方Layout設定介紹]]   * [[https://​logging.apache.org/​log4j/​2.x/​manual/​layouts.html|官方Layout設定介紹]]
-  * [[https://​www.cnblogs.com/​yeyang/​p/​7944899.html|Log4j2中RollingFile的文件滚动更新机制]] 
  
 =====    ===== =====    =====