]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
note option
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 26 Oct 2012 19:42:31 +0000 (22:42 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 26 Oct 2012 19:42:31 +0000 (22:42 +0300)
commitd7f4a0b73b11fade7274e344c0293af319696459
treee3446b00ea0a9ade0e485a22c6916c96e6ca7fb2
parent30f9c749ed28f8d4c824c7f48b6ad125d51b891b
note option

This patch adds note option to squid.conf. It is similar to
adaptation_meta but is applied after all adaptation and before logging.
Values of key/value pair notes can be logged using %{key}note macros.

    note key value acl ...
    logformat myFormat ... %{key}note ...

This option may be initially used to log custom information about the master
transaction. For example, an admin may configure Squid to log which "user group"
the transaction belongs to, where "user group" will be determined based on a
set of ACLs and not [just] authentication information.

From user point of view, adaptation_header sets/implies meta (i.e.,
setting adaptation_meta is sufficient to be able to log it using
%note) but the note option itself (if any) is evaluated later,
so it has no effect on ICAP headers.

This is a Measurement Factory project
20 files changed:
src/AccessLogEntry.h
src/HttpHeader.h
src/HttpHeaderTools.cc
src/Makefile.am
src/SquidConfig.h
src/adaptation/Config.cc
src/adaptation/Config.h
src/adaptation/History.h
src/adaptation/ecap/XactionRep.cc
src/adaptation/icap/ModXact.cc
src/cache_cf.cc
src/cf.data.depend
src/cf.data.pre
src/client_side.cc
src/format/ByteCode.h
src/format/Format.cc
src/format/Token.cc
src/log/access_log.cc
src/tests/stub_cache_cf.cc
src/tests/testHttpReply.cc