In log4j 1.3 there is a ReflectionFilter that will use an object's 'toString' method as the message. It then creates logging event properties out of any of your object's JavaBeans-style properties before the logging event is passed on to appenders.
It may be possible for you to backport it. You could also write your own renderer instead - if you're looking to serialize only a single class or a few classes. Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -----Original Message----- From: sudhakardvvn [mailto:[EMAIL PROTECTED] Sent: Fri 11/3/2006 12:39 AM To: [email protected] Subject: 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]
