The formal paramter of the log calls is Object. You can pass any object you 
like. The default renderer will then call toString() of this object. If you 
want to have annother rendering, you have to write your own one and declare it 
in the configuration file:

    <renderer renderedClass="myClassToLog"
        renderingClass="myRenderer"/>

Within your own renderer you can do what you like. But you have to give back a 
String as result to Log4j framework. A serialized object is a binary stream.

Heri

> -----Original Message-----
> From: Rondeau, Tim (Mission Systems) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 26, 2006 7:35 PM
> To: Log4J Users List
> Subject: Serialized Objects
> 
> 
> Hi All,
> 
> Can you use log4j to record serialized objects?
> 
> We do not just want to send strings.
> 
> Thanks
> 
> Tim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to