Added an appender to log into a file.
authordousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 21 Jun 2002 18:21:13 +0000 (18:21 +0000)
committerdousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 21 Jun 2002 18:21:13 +0000 (18:21 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@164 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

webApplication/WEB-INF/conf/log4j.properties

index d4de638..a41cea8 100755 (executable)
@@ -1,8 +1,20 @@
-log4j.rootCategory=WARN, dest1
+log4j.rootCategory=DEBUG, dest1, dest2
 log4j.logger.org.apache.xml.security=OFF
 
 log4j.appender.dest1=org.apache.log4j.ConsoleAppender
 log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
 log4j.appender.dest1.layout.ConversionPattern=%5p [%t] (%c:%L) - %m%n
 
-#log4j.debug=TRUE
\ No newline at end of file
+log4j.appender.dest2=org.apache.log4j.RollingFileAppender
+log4j.appender.dest2.File=/var/log/shib.log
+
+log4j.appender.dest2.MaxFileSize=100KB
+# Keep one backup file
+log4j.appender.dest2.MaxBackupIndex=1
+
+log4j.appender.dest2.layout=org.apache.log4j.PatternLayout
+log4j.appender.dest2.layout.ConversionPattern=%p %t %c - %m%n
+
+
+log4j.debug=TRUE
+