If you log a message containing linebreaks, ain will only prefix the first line with the "preamble". This might be correct, but it poses a problem with most syslog servers which don't deal with multiline messages over UDP/Unix socket, including Rsyslog. (It has a hacky setting called EscapeControlCharactersOnReceive which can be used to ignore line breaks, but it's not good enough. Rsyslog is such a mess.)
I think the better solution is to let ain optionally split the message into lines, and prefix each line with the preamble. Thoughts?
If you log a message containing linebreaks, ain will only prefix the first line with the "preamble". This might be correct, but it poses a problem with most syslog servers which don't deal with multiline messages over UDP/Unix socket, including Rsyslog. (It has a hacky setting called
EscapeControlCharactersOnReceivewhich can be used to ignore line breaks, but it's not good enough. Rsyslog is such a mess.)I think the better solution is to let ain optionally split the message into lines, and prefix each line with the preamble. Thoughts?