tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Logging request parameters - Filter vs Servlet
Date Tue, 29 Mar 2011 20:39:00 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Leon,

On 3/29/2011 12:57 PM, Leo Donahue - PLANDEVX wrote:
> Where do you initialize the Logger (Filter or Servlet)?

Which logger?

> The servlet 2.5 spec says you can use filters for logging, but since
> I'm not modifying the request or response, is logging from within a
> filter the right approach to logging request parameters?

That depends upon your requirements. What are they?

Note that reading request parameters in a Filter may trigger parsing of
a POST request body which may not be something you want to happen on
every request.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2SQ2QACgkQ9CaO5/Lv0PCkogCfcjmdq3Y2nEboa10pIoqx532R
Wv0An0lqu05E16lGvZNOYBUedUFHAAF3
=VaL5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message