]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log/applet: add new function syslog_applet_append_event()
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Feb 2024 15:17:42 +0000 (16:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commit201c706330c8fa248a052d5e22a1ba0259f8bf00
treeac822f6bef90ea857507c1fd5390bed7e5a4994c
parent6ae41dc510a5bb8d2c94f093b255a4b8e46763d5
MINOR: log/applet: add new function syslog_applet_append_event()

This function takes a buffer on input, and offset and a length, and
consumes the block from that buffer to send it to the appctx's output
buffer. Contrary to its sibling applet_append_line(), instead of just
appending an LF at the end of the line, it prepends the message size
in decimal and a space before the message, as expected by syslog TCP
implementaions. This will be used to simplify the ring reader code.
include/haproxy/log.h
src/log.c