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 Thu, 31 Mar 2011 19:44:55 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Leon,

On 3/30/2011 3:36 PM, Leo Donahue - PLANDEVX wrote:
> I'm going this route for now:
> 
> FacesContext.getCurrentInstance().getExternalContext().log(the string buffer of the parcel
listbox);
> FacesContext.getCurrentInstance().getExternalContext().log(the map URL);

Might I suggest that you try to cram all that information onto a single
line and replace any CR or LF characters with a space or something? If
you want to post-process the log, having each even on a single line will
be sooo much easier than writing a script just to piece everything back
together again.

Also, in high-volume situations, you may get logs from one request
interleaved with those of another, like this:

> Mar 30, 2011 12:02:35 PM org.apache.catalina.core.ApplicationContext log
> INFO: PARCEL = '125-27-089'
> Mar 30, 2011 12:02:35 PM org.apache.catalina.core.ApplicationContext log
> INFO: PARCEL = '456-67-890'
> Mar 30, 2011 12:02:45 PM org.apache.catalina.core.ApplicationContext log
> INFO:
http://planning.maricopa.gov/agsoutput/_ags_map08eb57df58224e1884e17a3e8a59b555.jpg
> Mar 30, 2011 12:02:45 PM org.apache.catalina.core.ApplicationContext log
> INFO:
http://planning.maricopa.gov/agsoutput/_ags_map738249178234b78b09213aba07f78923.jpg


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

iEYEARECAAYFAk2U2bcACgkQ9CaO5/Lv0PAvAwCfdiGr2HewlXGxzB05uvQwnIj6
8SAAn3IeKzFMBlwmPnDejpOs1buN87tS
=QUb7
-----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