cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.com>
Subject logging requests by CocoonServlet
Date Sat, 12 Feb 2005 23:09:55 GMT
I just played around a bit with the CocoonServlet and thought it might 
make sense to log the requests similar to Apache httpd does, e.g.

getLogger().info(request.getRemoteAddr() + " - - [" + new 
java.text.SimpleDateFormat().format(new java.util.Date(end)) + "] \"" + 
request.getMethod() + " " + uri + " " + request.getProtocol() + "\" - " 
+ timeString);

Would it make sense to replace the current

getLogger().info("'" + uri + "' " + timeString);

by the above? WDYT?

Michi

-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


Mime
View raw message