changeset 119:84f202b6aa65

Added log4j appender for console output.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 16 Jun 2011 14:13:39 +0200
parents 39957898c694
children 11d63bf00326
files ChangeLog conf/log4j.properties
diffstat 2 files changed, 18 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 16 14:06:09 2011 +0200
+++ b/ChangeLog	Thu Jun 16 14:13:39 2011 +0200
@@ -1,3 +1,7 @@
+2011-06-16  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* conf/log4j.properties: Added console appender to log4j config.
+
 2011-06-16  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	Improved top level exception handling and logging.
--- a/conf/log4j.properties	Thu Jun 16 14:06:09 2011 +0200
+++ b/conf/log4j.properties	Thu Jun 16 14:13:39 2011 +0200
@@ -1,9 +1,16 @@
 #### Log just errors and warnings to a file.
-log4j.rootLogger=ALL, BSH
+log4j.rootLogger=DEBUG, MXD, Console
 
-log4j.appender.BSH=org.apache.log4j.RollingFileAppender
-log4j.appender.BSH.File=./logs/mxd-converter.log
-log4j.appender.BSH.MaxFileSize=5000KB
-log4j.appender.BSH.MaxBackupIndex=1
-log4j.appender.BSH.layout=org.apache.log4j.PatternLayout
-log4j.appender.BSH.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+log4j.appender.MXD=org.apache.log4j.RollingFileAppender
+log4j.appender.MXD.File=./logs/console-client.log
+log4j.appender.MXD.MaxFileSize=5000KB
+log4j.appender.MXD.MaxBackupIndex=1
+log4j.appender.MXD.layout=org.apache.log4j.PatternLayout
+log4j.appender.MXD.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+
+#log4j.rootLogger=WARN, Console
+log4j.appender.Console=org.apache.log4j.ConsoleAppender
+log4j.appender.Console.Threshold=WARN
+log4j.appender.Console.layout=org.apache.log4j.PatternLayout
+log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)