changeset 180:bd87f802bea1

Servlet version 1.18b1 - new transfer mode "rawfile" with mime-type application/octet-stream - finally proper logging with Log4J! - therefore a lot of debugging-prints changed, the Util class is now useless
author robcast
date Fri, 21 Nov 2003 00:11:18 +0100
parents 0c85e8e76a25
children afe7ff98bb71
files client/digitallibrary/WEB-INF/digilib-config.xml client/digitallibrary/WEB-INF/lib/DigilibServlet.jar client/digitallibrary/WEB-INF/log4j-config.xml
diffstat 3 files changed, 35 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/digitallibrary/WEB-INF/digilib-config.xml	Fri Nov 21 00:10:57 2003 +0100
+++ b/client/digitallibrary/WEB-INF/digilib-config.xml	Fri Nov 21 00:11:18 2003 +0100
@@ -2,8 +2,6 @@
 <!-- Digilib servlet config file -->
 
 <digilib-config>
-  <parameter name="debug-level" value="10" />
-
   <!--  Image to be sent to indicate general failure. -->
   <parameter name="error-image" value="/docuserver/images/icons/broken.gif" />
 
@@ -45,4 +43,7 @@
   <!-- location of XML mapping file -->
   <parameter name="mapping-file" value="digilib-map.xml"/>
   
+  <!-- location of logger config file -->
+  <parameter name="log-config-file" value="log4j-config.xml"/>
+  
 </digilib-config>
Binary file client/digitallibrary/WEB-INF/lib/DigilibServlet.jar has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/digitallibrary/WEB-INF/log4j-config.xml	Fri Nov 21 00:11:18 2003 +0100
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+        
+  <appender name="log" class="org.apache.log4j.FileAppender">
+    <param name="File" value="digilib-log.txt"/>
+    <param name="Append" value="true"/>
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%d [%t] %p - %m%n"/>
+    </layout>
+  </appender>
+
+  <appender name="account" class="org.apache.log4j.FileAppender">
+    <param name="File" value="dl-access-log.txt"/>
+    <param name="Append" value="true"/>
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%d [%t] %p - %m%n"/>
+    </layout>
+  </appender>
+
+  <logger name="account.request">
+    <level value ="debug"/>
+    <appender-ref ref="account"/>
+  </logger>  
+
+  <root>
+    <level value ="debug"/>
+    <appender-ref ref="log"/>
+  </root>
+
+</log4j:configuration>