[Yanel-dev] Access logging

Michael Wechner michael.wechner at wyona.com
Thu Sep 2 16:36:34 CEST 2010


Dear Cedric

Thanks very much for your patches.

Can you attach them to Bugzilla and assign the review of the various 
patches to me.

Otherwise I am afraid I will loose track of them ;-)

Thanks

Michael

Cedric Staub wrote:
> Hello
>
> Here is a first version of my patch.
>
> Resources can now use appendFieldToLog to append a new field to the log
> entry generated by the current request. I noticed that the contact-form
> resourced already does something like this, but by simply generating a
> second log entry, which is not very nice. So I modified the contact form
> to use the the new functions.
>
> Example: In a resource, you can call
>
>   appendFieldToLog("email", resource.getParameter("email"))
>
> which will result in a log entry with e.g.
>
>   email:cedric.staub%40wyona.com
>
> in the access log file. 
>
> Feedback is welcome. By the way, I also improved the performance of the
> access log by replacing string appends with a StringBuilder and I
> inserted some Javadocs along the way as well.
>
> Cheers
> Cedric
>   



More information about the Yanel-development mailing list