changeset 664:15497dce8fcd

Adjusted logging configuration. Old config did not have any effect on log4j. gnv/trunk@756 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 09 Mar 2010 15:29:44 +0000
parents 9a019c125b60
children 27f25b9ae9af
files gnv/ChangeLog gnv/src/main/webapp/WEB-INF/classes/log4j.properties gnv/src/main/webapp/WEB-INF/config/log4j.properties gnv/src/main/webapp/WEB-INF/web.xml
diffstat 4 files changed, 33 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Tue Mar 09 15:18:11 2010 +0000
+++ b/gnv/ChangeLog	Tue Mar 09 15:29:44 2010 +0000
@@ -1,3 +1,13 @@
+2010-03-09  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* src/main/webapp/WEB-INF/config/log4j.properties,
+	  src/main/webapp/WEB-INF/classes/log4j.properties: Moved logging
+	  configuration. The config file did not have any effect in config
+	  directory. In classes directory, it has.
+
+	* src/main/webapp/WEB-INF/web.xml: Removed logging section which is no more
+	  necessary anymore.
+
 2010-03-09  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	* src/main/java/de/intevation/gnv/action/ChangeOptionsAction.java: Parse
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv/src/main/webapp/WEB-INF/classes/log4j.properties	Tue Mar 09 15:29:44 2010 +0000
@@ -0,0 +1,21 @@
+# Set root logger level to DEBUG and its only appender to A1.
+log4j.rootLogger=DEBUG, A1
+log4j.rootLogger=DEBUG, BSH
+
+# A1 is set to be a ConsoleAppender.
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+
+log4j.appender.BSH=org.apache.log4j.RollingFileAppender
+log4j.appender.BSH.File=/var/log/artifacts/client.log
+log4j.appender.BSH.layout=org.apache.log4j.PatternLayout
+log4j.appender.BSH.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+
+# Abschalten des geschwätzigen Loggings in dre Klasse JspServlet
+log4j.category.org.apache.jasper=WARN
+log4j.category.org.apache.catalina=WARN
+log4j.category.org.apache.commons=WARN
+log4j.category.org.apache.struts=WARN
--- a/gnv/src/main/webapp/WEB-INF/config/log4j.properties	Tue Mar 09 15:18:11 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-# Set root logger level to DEBUG and its only appender to A1.
-log4j.rootLogger=DEBUG, A1
-
-# A1 is set to be a ConsoleAppender.
-log4j.appender.A1=org.apache.log4j.ConsoleAppender
-
-# A1 uses PatternLayout.
-log4j.appender.A1.layout=org.apache.log4j.PatternLayout
-log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
-
-# Abschalten des geschwätzigen Loggings in dre Klasse JspServlet
-log4j.category.org.apache.jasper.servlet.JspServlet=WARN
-log4j.category.org.apache.catalina.core.ContainerBase=WARN
\ No newline at end of file
--- a/gnv/src/main/webapp/WEB-INF/web.xml	Tue Mar 09 15:18:11 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/web.xml	Tue Mar 09 15:29:44 2010 +0000
@@ -17,10 +17,12 @@
         
         <!--  The Log4J Configuration, relative to the Project-Folder,
               which should be used in this Project.  -->
+        <!--
         <init-param>
             <param-name>de.intevation.gnv.servlet.log4j.configuration</param-name>
             <param-value>WEB-INF/config/log4j.properties</param-value>
         </init-param>
+        -->
         
         <!--  The Number of ArtifacDatabases which are configured in this Document. -->
         <init-param>

http://dive4elements.wald.intevation.org