From: Sander A. <sa....@fz...> - 2017-06-01 05:27:14
|
Hi Krzysztof, Am Dienstag, den 30.05.2017, 08:55 +0200 schrieb Krzysztof Benedyczak: > 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 ;-) Sure cron would be an option. > > 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). I use the second one. Now I know why it did not work. Thanks for your answer, Sander > > HTH, > Krzysztof > > -- Federated Systems and Data Juelich Supercomputing Centre phone: +49 2461 61 8847 fax: +49 2461 61 6656 email: sa....@fz... ----------------------------------------------------------------------- ----------------------------------------------------------------------- Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ----------------------------------------------------------------------- ----------------------------------------------------------------------- |