Hello, Christopher,
No, there is no AccessLogFilter in Tomcat 7 for now. I've got my version of AccessLogFilter during Google Summer Code 2009, but has not yet submit it for some reason. Please attach your version so we could discuss it and make an AccessLogFilter in Tomcat 7. On Fri, Feb 26, 2010 at 10:07 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > All, > > I just started to write a filter that did request timing logging, and I > looked at AccessLogValve for inspiration for how to parse a log pattern > and then spit it out for every request. > > I realized that AccessLogValve can actually do everything I want it to > do, already: log request time plus some request attributes. > > However, I may have occasion to want to /skip/ some of the transaction > timing: that is, say, insert it between existing filters. That's not > possible (that I know of) for Valves, because they are always before > Filters in the pipeline. > > I believe Tomcat 7 is discarding Valves in favor of using the Filter > interface. Is there already in existence an AccessLogFilter? > > I checked svn and I can see that AccessLogValve is in the 'valves' > package, and that there /is/ a 'filters' package but it only has a > subset of 'valves' that we've all grown to love. > > Is this just a class that hasn't been updated for TC7, yet? > > If so, I'd be happy to do the conversion and submit my code for inclusion. > > Thanks, > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkuIOB8ACgkQ9CaO5/Lv0PCS4ACfQxM/Oe2/4frguG3iKUbY2VmX > FEgAn0N7e0FbuvNV5aNt2kSt3SedGCdV > =vqsC > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Sincerely yours and Best Regards, Xie Xiaodong