]> 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>
Thu, 12 Mar 2015 09:20:19 +0000 (10:20 +0100)
commit2a3b435d8ba7c6a5c26193102663d74abb74fcdb
treef5f74c3f96ed2c0d055ceb923dd1a6409fe01549
parent393600eb84533b09e765266b65c20eda12656ec6
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