If you want to do it in code then you can use the example of the
TimingFilter that is part of the quickstart.

Add this to your AppModule class.

 public RequestFilter buildTimingFilter(final Logger log)
    {
        return new RequestFilter()
        {
            public boolean service(Request request, Response response,
RequestHandler handler)
                    throws IOException
            {
                long startTime = System.currentTimeMillis();

                try
                {
                    // The responsibility of a filter is to invoke the
corresponding method
                    // in the handler. When you chain multiple filters
together, each filter
                    // received a handler that is a bridge to the next filter.

                    return handler.service(request, response);
                }
                finally
                {
                    long elapsed = System.currentTimeMillis() - startTime;

                    log.info(String.format("Request time: %d ms", elapsed));
                }
            }
        };
    }


 public void contributeRequestHandler(OrderedConfiguration<RequestFilter>
configuration,
            @Local RequestFilter filter)
    {
        // Each contribution to an ordered configuration has a name,
When necessary, you may
        // set constraints to precisely control the invocation order
of the contributed filter
        // within the pipeline.

        configuration.add("Timing", filter);
    }

Sometimes it's easier to just run through Firebug in Firefox or a
proxy like Charles (http://www.charlesproxy.com/)



Josh

On Mon, Jan 17, 2011 at 8:36 AM, Tooobi <tobias.k...@t-systems.com> wrote:
>
> Sorry, but I'm not sure how to log all HTTP requests. Do you have a tapestry
> example?
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3344786.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to