]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: permit to send messages larger than 1024 characters
authorRainer Gerhards <rgerhards@adiscon.com>
Fri, 6 Mar 2015 14:50:34 +0000 (15:50 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Mar 2015 10:19:16 +0000 (11:19 +0100)
commitf68b8aa7f5dc1fdf403a2ef64b5dd86f3fdbee95
tree2060ed192db4d75f2626281ee03dc2055a612ec8
parentc2ef308bbfdc9fb9a0053e258828f5bd6fbb0c5d
logger: permit to send messages larger than 1024 characters

This is an important capability that has been specified in RFC5424.
However, messages larger than 1024 chars are being accepted for years
now by at least rsyslog and syslog-ng.

This patch adds the option --size to permit setting a new max
size, with 1024 being the default.

Note that the size limit is only approximative, as we do not take the
header size in account (RFC talks about total message length).

[[kzak@redhat.com: - add 'S' to getopt_long(),
                   - rename --message-size to --size
                   - add the option to bash-completion]

Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/logger
misc-utils/logger.1
misc-utils/logger.c