tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ben short" <...@benshort.co.uk>
Subject Re: Logging all data sent to client
Date Wed, 25 Jul 2007 20:35:14 GMT
> One other note: since you were using a compression filter as an example,
> I can see why they didn't do the whole "writer" thing. A compressed
> stream cannot use a Writer since the output must be binary. A writer
> primarily handles line-ending conversion which would break any
> compression output generated.

Ah I hadnt thought of that :)

Yep it works ands not ment for production as the logging will have a
massive overhead.

On 7/25/07, Christopher Schultz <chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ben,
>
> ben short wrote:
> > I ripped and altered the code of the Compression Filter servlet
> > example from tomcat 5.5.23.
>
> One other note: since you were using a compression filter as an example,
> I can see why they didn't do the whole "writer" thing. A compressed
> stream cannot use a Writer since the output must be binary. A writer
> primarily handles line-ending conversion which would break any
> compression output generated.
>
> Since you are not bound by the requirement that an OutputStream be used,
> I would recommend handling the Writer separately. But, hey, if it works,
> it works, right?
>
> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGp7L/9CaO5/Lv0PARAsWZAJ42RaxekZB/uH8iCHoJu0aPclnpwgCeLHXl
> /DG3WHjOB4Z8Kb1AXifKLqE=
> =VpkL
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Mime
View raw message