users@glassfish.java.net

Re: Glassfish Access Log Format

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 11 Nov 2009 15:02:50 -0800

On 11/11/09 14:51, glassfish_at_javadesktop.org wrote:
> Re,
>
> I submitted an RFE to address this limitation: https://glassfish.dev.java.net/issues/show_bug.cgi?id=10978.
>

Thanks, Laurent!

I should have mentioned that another response aspect that may be
access-logged
is the response status (in addition to the response length).

> As I guess the fix could take some time to be in a glassfish release (if it will), I am considering patching my glassfish 2.1 to add this feature.
> Jan, do you know the main class I should look into to achieve this ?
>

Sure, take a look at:

  
glassfish/appserv-core/src/java/com/sun/enterprise/web/accesslog/DefaultAccessLogFormatterImpl.java

See how

  private static final String HEADER_BY_NAME_PREFIX = "header.";

is treated for request headers, and add corresponding code for response
headers.

Let me know if you have any questions, and feel free to send me a patch
once you are done. :)

Thanks!


Jan

> Regards,
>
> Laurent.
> [Message sent by forum member 'sauvage' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=371483
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>