]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
Request-Line log format codes for split client and server view
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Jun 2011 15:43:46 +0000 (03:43 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Jun 2011 15:43:46 +0000 (03:43 +1200)
commitf025622f7efbaf4e24d5a753276bd15581682495
tree198a70d5dbe7c13fe070070d6f364429cf052b4b
parente526b3686a0a4254425d0e720cdcf6c2c45f82e1
Request-Line log format codes for split client and server view

Since URL-rewrite, adaptation and a number of other things can alter the
request as it goes through Squid it is useful to be able to log both the
original incoming and the final outgoing versions of these details.

This adds logformat codes to extend %rm %ru %rp and %rv with < and >
modifiers for in and outbound display.

The old tag versions are kept for now. There is still work to do cleaning
up the log data object which will clarify if the various data fields
which used to be passed to logging match either of the original or final
request data and can be obsoleted. It is already clear that the logged
path matches neither and contains some normalized version.
src/cf.data.pre
src/log/FormatSquidCustom.cc
src/log/Tokens.cc
src/log/Tokens.h