If the size of the message is known ahead of time, you can create a simple
framing protocol around messages as well.

On 21 July 2017 at 07:23, Mikael Ståldal <[email protected]> wrote:

> I don't quite understand.
>
> This is something which is needed now. When you use a streaming appender
> (Console, any File or Socket with protocol=tcp/ssl), the layout needs to
> provide some way to delimit log events.
>
>
>
> On 2017-07-20 22:28, Matt Sicker wrote:
>
>> I'm not a fan of the null termination as it is. Do you know how many
>> millions or billions of dollars have been wasted due to buggy C and C++
>> programs thanks to null-terminated strings? Almost as bad as null itself.
>> ;)
>>
>> Having some way to delimit log events could be handy later on for
>> garbage-free networked streaming appenders that want to break up log
>> events
>> into individual messages as opposed to how the file-type streaming
>> appenders work.
>>
>> On 20 July 2017 at 14:53, Mikael Ståldal <[email protected]> wrote:
>>
>> Now JsonLayout, XmlLayout, YamlLayout and GelfLayout has an
>>> includeNullDelimiter option to terminate each log event with a 0-byte.
>>>
>>> Would it be useful to have the same in any other layout?
>>>
>>> I could think of HtmlLayout, SyslogLayout and RFC5424Layout.
>>>
>>


-- 
Matt Sicker <[email protected]>

Reply via email to