logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Harrington <scott...@sns-usa.com>
Subject Re: Make LogEvent implementations Externalizable
Date Mon, 28 Jul 2014 21:22:18 GMT
Just to follow up,

There was no need for an enhancement request. I was able to implement my 
own 'PackedLayout' and 'PackedLogEventBridge' that serialize my particular 
LogEvents efficiently to/from byte array in exactly the way I wanted (by 
making some assumptions not suitable for general-purpose use).

Thanks for the advice and for the well-designed interfaces!


On Fri, 11 Jul 2014, Ralph Goers wrote:

> Sounds good.
> This approach allows for many different serialization formats.  It might 
> be nice to have the CompactBinaryLayout even be “pluggable” to support 
> things like Hessian, Protobuf, Thrift, etc. Of course, that would also 
> require the LogEventBridge to have support as well.
> Ralph
> On Jul 11, 2014, at 10:14 AM, Scott Harrington <scotth01@sns-usa.com> wrote:
>> OK! Agree. So the 2.1 enhancement request will be for a 
>> CompactBinaryLayout on the sending side and corresponding 
>> LogEventBridge on the receiving side. I'll open it in JIRA when I get 
>> back from vacation and have a chance to work through an initial 
>> implementation, unless someone else beats me to it.
>> Current 'Serializable' form is a bit chatty but is easier (automatic) 
>> to maintain. Forget I ever said anything about Externalizable.

View raw message