差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
java:log4j2:appenders [2022/04/10 15:26] tony [RollingFileAppender with Size and File Count conditions] |
java:log4j2:appenders [2022/04/10 22:01] tony |
||
---|---|---|---|
行 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設定介紹]] |