[Cosmo-dev] Metrics logging
Travis Vachon
travis at osafoundation.org
Tue Mar 27 12:42:17 PST 2007
>
> 1) we may need to extend or replace the tomcat access logging valve to
> support whatever arbitrary application data we want to log, and
>
> 2) we'll need to come up with some mechanism for putting application
> data in a place where it can be logged. for instance, we could wrap an
> aspect around the RPCService methods that publishes an application
> event and then have some logging filter listen for those events and
> log them at the end of the request.
Short term, I think a combination of these two might be the best
option for the specific problem Jared is talking about:
1) We can wrap an aspect around the RPCService methods that will
store the name of the current JSON-RPC method in a request attribute
(perhaps "Service.RPCMethod")
2) We can then use the Tomcat Access Log's format string to pull the
value of Service.RPCMethod into the access logs
I'm not precisely certain how much work 1) will be, but 2) should be
under an hour for implementation and testing.
Longer term, a more robust system would be great, but this solution
is pretty attractive for its expediency.
- Travis
More information about the cosmo-dev
mailing list