Limit number of old log files to keep to work around log4j issue.
authornlevitt <nlevitt@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 27 Apr 2004 21:36:48 +0000 (21:36 +0000)
committernlevitt <nlevitt@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 27 Apr 2004 21:36:48 +0000 (21:36 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1022 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/log/LoggingContextListener.java

index b0d9e73..86a27db 100644 (file)
@@ -146,7 +146,7 @@ public class LoggingContextListener implements ServletContextListener {
                        RollingFileAppender appender = new RollingFileAppender(new PatternLayout(pattern), logPath);
 
                        appender.setMaximumFileSize(1024 * 1024); // 1 megabyte
-                       appender.setMaxBackupIndex(Integer.MAX_VALUE); // imho we should not delete any log files
+                       appender.setMaxBackupIndex(30);           // imho we should not delete any log files
 
                        return appender;
                } catch (IOException e) {
@@ -164,7 +164,7 @@ public class LoggingContextListener implements ServletContextListener {
                RollingFileAppender appender = makeRollingFileAppender(location, "%d{ISO8601} %-5p %-41X{serviceId} - %m%n");
 
                appender.setName("error");
-               appender.setMaxBackupIndex(Integer.MAX_VALUE); // imho we should not delete any log files
+               appender.setMaxBackupIndex(30); // imho we should not delete any log files
 
                Level level = (Level) Level.WARN;
                if (attributes.getNamedItem("level") != null) {