]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: sink: build header in sink_write for log formats
authorEmeric Brun <ebrun@haproxy.com>
Wed, 6 May 2020 12:33:46 +0000 (14:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 May 2020 09:04:11 +0000 (11:04 +0200)
commitbd163817edd3f698ff04441d7eda364dde1a013f
tree6976f1015c6db77f9ae441a0cab8a4462a1874ff
parent9e8ea0ae6f63fe1a8119d99b1218ccc095b390ac
MEDIUM: sink: build header in sink_write for log formats

This patch extends the sink_write prototype and code to
handle the rfc5424 and rfc3164 header.

It uses header building tools from log.c. Doing this some
functions/vars have been externalized.

facility and minlevel have been removed from the struct sink
and passed to args at sink_write because they depends of the log
and not of the sink (they remained unused by rest of the code
until now).
include/proto/log.h
include/proto/sink.h
include/types/sink.h
src/log.c
src/sample.c
src/sink.c
src/trace.c