You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Alef Arendsen <al...@smarthaven.com> on 2001/03/18 22:45:10 UTC

Remarks about Object logging

Hi all,

just wanted to point out that the writeObject() and readObject() methods of
the LoggingEvent in org.apache.log4j.spi do not yet support the
serialization of Object instead of the rendered object (usually Strings). Or
do we have to implement our own ObjectRenderers for this? In the RmiAppender
I've built, this is quite inconvenient and I do have to change it. It would
be nice if this would be taken into account before releasing the final...

thnx,

Alef Arendsen
SmartHaven - Every Bit Personal
ww.smarthaven.com



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Re: Remarks about Object logging

Posted by Ceki Gülcü <cg...@qos.ch>.
Hello Alef,

Serializing the message object may have quite serious consequences on performance. For that reason, log4j does not support message object serialization nor is it likely to do so in the future. However, you can extend LoggingEvent so that it  serializes message objects. If you encounter problems extending log4j this way please let us know. We will make every effort to solve the problem. Ceki

At 22:45 18.03.2001 +0100, Alef Arendsen wrote:
>Hi all,
>
>just wanted to point out that the writeObject() and readObject() methods of
>the LoggingEvent in org.apache.log4j.spi do not yet support the
>serialization of Object instead of the rendered object (usually Strings). Or
>do we have to implement our own ObjectRenderers for this? In the RmiAppender
>I've built, this is quite inconvenient and I do have to change it. It would
>be nice if this would be taken into account before releasing the final...
>
>thnx,
>
>Alef Arendsen
>SmartHaven - Every Bit Personal
>ww.smarthaven.com
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-dev-help@jakarta.apache.org

--
Ceki Gülcü     Web: http://qos.ch 
email: cgu@qos.ch or ceki_gulcu@yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org