logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Wyss" <Patrick.W...@mobilesolutions.ch>
Subject AW: Logging objects
Date Fri, 03 Nov 2006 10:18:50 GMT
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:dvvn_sudha@yahoo.com]
> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 
> 



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


Mime
View raw message