]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log: add a new log format flag "E"
authorDragan Dosen <ddosen@haproxy.com>
Fri, 12 Feb 2016 12:23:03 +0000 (13:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Feb 2016 12:36:47 +0000 (13:36 +0100)
commit835b9212f698338d1556cb2d2557664ae16b66b8
tree61473cb735f04fa28d6c006c520ca8d0d7dee7b8
parent0edd10925d6aeef2d283928f257df68c6f97b306
MEDIUM: log: add a new log format flag "E"

The +E mode escapes characters '"', '\' and ']' with '\' as prefix. It
mostly makes sense to use it in the RFC5424 structured-data log formats.

Example:

log-format-sd %{+Q,+E}o\ [exampleSDID@1234\ header=%[capture.req.hdr(0)]]
doc/configuration.txt
include/proto/log.h
include/types/log.h
src/haproxy.c
src/log.c