commit | bd163817edd3f698ff04441d7eda364dde1a013f | [log] [tgz] |
---|---|---|
author | Emeric Brun <ebrun@haproxy.com> | Wed May 06 14:33:46 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue May 19 11:04:11 2020 +0200 |
tree | 6976f1015c6db77f9ae441a0cab8a4462a1874ff | |
parent | 9e8ea0ae6f63fe1a8119d99b1218ccc095b390ac [diff] |
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).