Updated config as appropriate for a default. Should work in any environment.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 21 Jun 2002 20:58:29 +0000 (20:58 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 21 Jun 2002 20:58:29 +0000 (20:58 +0000)
Additionally, includes commented out examples of alternate configurations.

git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@165 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

webApplication/WEB-INF/conf/log4j.properties

index a41cea8..aec17db 100755 (executable)
@@ -1,20 +1,23 @@
-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
+# Default Log4J configuration.  Sends logging output to STDOUT.
 
-log4j.appender.dest2=org.apache.log4j.RollingFileAppender
-log4j.appender.dest2.File=/var/log/shib.log
+log4j.rootCategory=WARN, stdout
+log4j.logger.org.apache.xml.security=OFF
 
-log4j.appender.dest2.MaxFileSize=100KB
-# Keep one backup file
-log4j.appender.dest2.MaxBackupIndex=1
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%c:%L) - %m%n
 
-log4j.appender.dest2.layout=org.apache.log4j.PatternLayout
-log4j.appender.dest2.layout.ConversionPattern=%p %t %c - %m%n
 
+# Uncomment the following line to enable verbose debugging output concerning log4j initialization.
+#log4j.debug=TRUE
 
-log4j.debug=TRUE
 
+# The following block represents an example of how to direct logging output to a file.
+#log4j.rootCategory=DEBUG, file
+#log4j.logger.org.apache.xml.security=OFF
+#log4j.appender.file=org.apache.log4j.RollingFileAppender
+#log4j.appender.file.File=/var/log/shib.log
+#log4j.appender.file.MaxFileSize=100KB
+#log4j.appender.file.MaxBackupIndex=1
+#log4j.appender.file.layout=org.apache.log4j.PatternLayout
+#log4j.appender.file.layout.ConversionPattern=%5p [%t] (%c:%L) - %m%n
\ No newline at end of file