]> git.ipfire.org Git - thirdparty/squid.git/commit
Add %byte{value} logformat code for logging or sending any byte (#1588)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Wed, 29 Nov 2023 12:50:05 +0000 (12:50 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 29 Nov 2023 12:50:16 +0000 (12:50 +0000)
commit007cd68679204c84b3c5188fdb87ef1c742bb5fb
treec589fa94ddaecaf50e4b6a764ff446ce72032d92
parent17c0af35275d4984650961522ed633dd9806a82d
Add %byte{value} logformat code for logging or sending any byte (#1588)

This feature is needed by at least the statsd tool receiving TCP log
info: https://github.com/statsd/statsd/blob/7c07eec/docs/server.md

No support for zero byte values yet because existing Format::assemble()
code does not support that out of the box, and there is no known need
for such support. It can be added later (without backward compatibility
problems) if needed.
src/cf.data.pre
src/format/ByteCode.h
src/format/Format.cc
src/format/Token.cc
src/format/Token.h