aboutsummaryrefslogtreecommitdiff
path: root/work/cfg/log4j.properties
diff options
context:
space:
mode:
Diffstat (limited to 'work/cfg/log4j.properties')
-rw-r--r--work/cfg/log4j.properties44
1 files changed, 18 insertions, 26 deletions
diff --git a/work/cfg/log4j.properties b/work/cfg/log4j.properties
index e08f2b0..e42618c 100644
--- a/work/cfg/log4j.properties
+++ b/work/cfg/log4j.properties
@@ -1,29 +1,21 @@
-# An example log4j configuration file that outputs to System.out. The
-# output information consists of relative time, log level, thread
-# name, logger name, nested diagnostic context and the message in that
-# order.
+log4j.rootLogger = INFO, CONSOLE
-# For the general syntax of property based configuration files see the
-# documenation of org.apache.log4j.PropertyConfigurator.
+# DETAIL LEVELS
+log4j.logger.org.pdfbox = INFO
+log4j.logger.at.gv.egiz = DEBUG
+log4j.logger.at.knowcenter = DEBUG
-log4j.rootLogger=INFO, CA
-log4j.logger.org.pdfbox=INFO
-log4j.logger.org.apache.commons=INFO
+# 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
-# CA is set to be a ConsoleAppender which outputs to System.out.
-log4j.appender.CA=org.apache.log4j.ConsoleAppender
-log4j.appender.CA.layout=org.apache.log4j.PatternLayout
-log4j.appender.CA.layout.ConversionPattern=%d{ISO8601} %-4r %-5p [%t] %37c %3x - %m%n
-
-# FA is set to be a FileAppender which outputs to the corresponding log file
-log4j.appender.FA=org.apache.log4j.FileAppender
-log4j.appender.FA.File=logs/pdf-as.log
-log4j.appender.FA.Append=false
-log4j.appender.FA.layout=org.apache.log4j.PatternLayout
-log4j.appender.FA.layout.ConversionPattern=%d{ISO8601} %-4r %-5p [%t] %c: %m%n
-
-
-#log4j.logger.at.knowcenter.wag.egov.egiz = TRACE
-#log4j.logger.at.knowcenter.wag.egov.egiz.ldap = TRACE
-
-#log4j.logger.at.gv.egiz = TRACE
+# ROLLINGFILE
+log4j.appender.ROLLINGFILE = org.apache.log4j.RollingFileAppender
+log4j.appender.ROLLINGFILE.File = ${catalina.base}/logs/esig.log
+log4j.appender.ROLLINGFILE.MaxFileSize = 10240KB
+log4j.appender.ROLLINGFILE.MaxBackupIndex = 1
+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