MINOR: log-format: allow to preserve spacing in log format strings
authorDragan Dosen <ddosen@haproxy.com>
Tue, 23 Jun 2020 16:16:44 +0000 (18:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Jul 2020 08:11:44 +0000 (10:11 +0200)
commit1e3b16f74fe40888557392a123b51bb469b486d1
tree76f809d83c84915e18113b2868bc72e20da0b583
parenta6026a0c92ec503303e095e9c1b7cfb5b061d661
MINOR: log-format: allow to preserve spacing in log format strings

Now it's possible to preserve spacing everywhere except in "log-format",
"log-format-sd" and "unique-id-format" directives, where spaces are
delimiters and are merged. That may be useful when the response payload
is specified as a log format string by "lf-file" or "lf-string", or even
for headers or anything else.

In order to merge spaces, a new option LOG_OPT_MERGE_SPACES is applied
exclusively on options passed to function parse_logformat_string().

This patch fixes an issue #701 ("http-request return log-format file
evaluation altering spacing of ASCII output/art").
doc/configuration.txt
include/haproxy/log-t.h
src/cfgparse.c
src/log.c