aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/resources/log4j.properties
diff options
context:
space:
mode:
authorrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-10-07 15:55:08 +0000
committerrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-10-07 15:55:08 +0000
commit21dbd3ad3096c22c07b64ebc94ce521f1b18ad1d (patch)
treed63362db8877e643bd737a1b99e3079fdb080d98 /pdf-as-web/src/main/resources/log4j.properties
parent06a677a459cbcef5167c866145f09a2349e426a5 (diff)
downloadpdf-as-3-21dbd3ad3096c22c07b64ebc94ce521f1b18ad1d.tar.gz
pdf-as-3-21dbd3ad3096c22c07b64ebc94ce521f1b18ad1d.tar.bz2
pdf-as-3-21dbd3ad3096c22c07b64ebc94ce521f1b18ad1d.zip
Added for logging
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@859 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src/main/resources/log4j.properties')
-rw-r--r--pdf-as-web/src/main/resources/log4j.properties32
1 files changed, 32 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/resources/log4j.properties b/pdf-as-web/src/main/resources/log4j.properties
new file mode 100644
index 0000000..67ad4c4
--- /dev/null
+++ b/pdf-as-web/src/main/resources/log4j.properties
@@ -0,0 +1,32 @@
+log4j.rootLogger = WARN, CONSOLE, ROLLINGFILE
+
+# DETAIL LEVELS
+log4j.logger.org.pdfbox = INFO
+log4j.logger.at.gv.egiz.pdfas = DEBUG
+log4j.logger.at.knowcenter = DEBUG
+log4j.logger.at.knowcenter.wag.egov.egiz.ldap = DEBUG
+log4j.logger.org.apache.commons.httpclient.HttpMethodBase = ERROR
+log4j.logger.statistic = INFO, STATFILE
+
+# CONSOLE
+log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern = [%-5p@%d{dd.MM.yyyy HH:mm:ss}] %c:%M:%L - %m%n
+log4j.appender.CONSOLE.threshold = ERROR
+log4j.appender.CONSOLE.Target = System.out
+
+# ROLLINGFILE
+log4j.appender.ROLLINGFILE = org.apache.log4j.RollingFileAppender
+log4j.appender.ROLLINGFILE.File = ${catalina.base}/logs/test-pdf-as-webapp.log
+log4j.appender.ROLLINGFILE.MaxFileSize = 10240KB
+log4j.appender.ROLLINGFILE.MaxBackupIndex = 9
+log4j.appender.ROLLINGFILE.layout = org.apache.log4j.PatternLayout
+log4j.appender.ROLLINGFILE.layout.ConversionPattern = [%-5p@%d{dd.MM.yyyy HH:mm:ss}] %c:%M:%L - %m%n
+
+# STATISTICS FILE
+log4j.appender.STATFILE = org.apache.log4j.RollingFileAppender
+log4j.appender.STATFILE.File = ${catalina.base}/logs/test-pdf-as-webapp-statistics.log
+log4j.appender.STATFILE.MaxFileSize = 10240KB
+log4j.appender.STATFILE.MaxBackupIndex = 9
+log4j.appender.STATFILE.layout = org.apache.log4j.PatternLayout
+log4j.appender.STATFILE.layout.ConversionPattern = [%d{dd.MM.yyyy HH:mm:ss}] %m%n