> On Jan 16, 2018, at 7:45 AM, Mikael Ståldal <[email protected]> wrote:
> 
> How is a binary layout (extending AbstractLayout) supposed to implement the 
> toSerializable method in the Layout interface?
> 
> Why is that method there?
> 
> 

You would implement it the same way all the other layouts do. All that method 
does is convert the LogEvent into a class that implements Serializable - a 
String for anything that extends AbstractStringLayout. It exists because some 
Appenders call that method instead of toByteArray(). A binary layout just needs 
to convert the LogEvent into some Serializable form, such as a LogEventProxy.

Ralph


Reply via email to