I tend to get a bit frustrated, switching between versions of Jetty and
different logging frameworks. I like to be able to see incoming requests
(espcially helpful for tracking down Ajax problems), but sometimes its hard
to get Jetty to produce the NCSA log.

I keep creating a HttpServletRequestFilter that does logging for me. I find
this format quite readable:

INFO  RequestLoggingFilter - [200]  GET /login
                                        15 ms
INFO  RequestLoggingFilter - [304]  GET
/assets/7dcc8a61d3c24b38/core/default.css
  5 ms
INFO  RequestLoggingFilter - [304]  GET
/assets/7dcc8a61d3c24b38/core/blackbird_1_0/blackbird.css
  1 ms
INFO  RequestLoggingFilter - [304]  GET
/assets/7dcc8a61d3c24b38/core/scriptaculous_1_8_2/scriptaculous.js
 1 ms
INFO  RequestLoggingFilter - [304]  GET
/assets/7dcc8a61d3c24b38/core/scriptaculous_1_8_2/prototype.js
 3 ms
INFO  RequestLoggingFilter - [304]  GET
/assets/7dcc8a61d3c24b38/core/tapestry-messages.js
 1 ms
INFO  RequestLoggingFilter - [304]  GET
/assets/7dcc8a61d3c24b38/core/blackbird_1_0/blackbird.js
 3 ms
INFO  RequestLoggingFilter - [304]  GET
/assets/7dcc8a61d3c24b38/core/tapestry.js
  1 ms
INFO  RequestLoggingFilter - [304]  GET
/assets/7dcc8a61d3c24b38/core/scriptaculous_1_8_2/effects.js
 3 ms

(That's quite readable in a san serif font)

I can see this filter being part of Tapestry, but only used (by default)
when in development mode (not production mode).  Thoughts?

-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to learn
how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Reply via email to