aboutsummaryrefslogtreecommitdiff
path: root/spss.slinterface/conf/log4j/log4j.properties
diff options
context:
space:
mode:
Diffstat (limited to 'spss.slinterface/conf/log4j/log4j.properties')
-rw-r--r--spss.slinterface/conf/log4j/log4j.properties25
1 files changed, 25 insertions, 0 deletions
diff --git a/spss.slinterface/conf/log4j/log4j.properties b/spss.slinterface/conf/log4j/log4j.properties
new file mode 100644
index 000000000..5b485b0bb
--- /dev/null
+++ b/spss.slinterface/conf/log4j/log4j.properties
@@ -0,0 +1,25 @@
+#
+# Sample log4j configuration for the MOA-SL web service
+#
+
+# commons-logging setup
+org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory
+
+# Configure root logger and loggers for moa-spss
+log4j.rootLogger=info, stdout
+log4j.logger.slinterface=info, moasl
+
+# Configure the 'stdout' appender to write logging output to the console
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%5p | %d{dd HH:mm:ss,SSS} | %20c | %10t | %m%n
+
+# Configure the 'moasl' appender to write moa-sl related logging output
+# to the file 'logs/moa-sl.log'. The file is rolled over every 1000KB,
+# and a maximum history of 10 log files is being kept.
+log4j.appender.moasl=org.apache.log4j.RollingFileAppender
+log4j.appender.moasl.File=logs/moa-sl.log
+log4j.appender.moasl.MaxFileSize=1000KB
+log4j.appender.moasl.MaxBackupIndex=10
+log4j.appender.moasl.layout=org.apache.log4j.PatternLayout
+log4j.appender.moasl.layout.ConversionPattern=%5p | %d{dd HH:mm:ss,SSS} | %20c | %10t | %m%n