you can log anything with log4j :-]

depending on what you want to do you can use one of the following
json:
http://www.json.org
or xstream:
http://xstream.codehaus.org/index.html

and either change your log requests:
log.debug( xstream.toXML(someObject));
or
write your own Layout

regards
patrick

> -----Ursprüngliche Nachricht-----
> Von: sudhakardvvn [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 3. November 2006 09:40
> An: log4j-user@logging.apache.org
> Betreff: Logging objects
> 
> 
> 
> Hi,
> Can we log the java objects(seriablizble) into a logfile 
> using log4j? If yes
> please tell me some good link or example on this one.
> Thanks in Advance
> Sudhakar
> -- 
> View this message in context: 
> http://www.nabble.com/Logging-objects-tf2566625.html#a7153706
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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