Once in a while people like to merge messages into a single line not based on a pattern but based on the number of lines that have to be merged. This may be caused by not having a clear usable pattern or by just wanting to reduce the number of lines in a message by combining several. There are situations that it may also be handy to combine the lines into a JSON-array that can be used by other applications.
I propose to introduce an extra multiline parameter
kind that distinguishes this behavior. Of course all the other parameters are still valid so in theory you can combine the
pattern and the
max_lines parameters. Although in practice I do not expect that.
The values of the
kind parameter would be
<<empty>> (default and current implementation),
merge-json will combine the messages in a JSON-array.