From: Krzysztof B. <kb...@un...> - 2017-05-30 06:55:27
|
Hi Sander, W dniu 29.05.2017 o 12:26, Sander Apweiler pisze: > Hi Krzysztof, > > I want to limit the number of logiles. I know there is an option > log4j.appender.NAME.MaxBackupIndex for RollingFileAppender. I tested > with log4j.appender.LOGFILE.MaxBackupIndex=30 but it didn't work. Is > the another option to limit the number of logfiles? Another option is cron ;-) Regarding MaxBackupIndex - what appender do you use precisely? org.apache.log4j.RollingFileAppender or org.apache.log4j.rolling.RollingFileAppender? From what I recall (but used it looong ago) MaxBakupIndex was only working on the first one. 2nd is from log4j-extras (also included in Unity). HTH, Krzysztof |