logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Deboy" <sde...@comotivsystems.com>
Subject RE: Logging objects
Date Fri, 03 Nov 2006 13:27:33 GMT
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
111 SW Columbia Street Ste. 950
Portland, OR  97201

Telephone:      503.224.7496
Cell:           503.997.1367
Fax:            503.222.0185



-----Original Message-----
From: sudhakardvvn [mailto:dvvn_sudha@yahoo.com]
Sent: Fri 11/3/2006 12:39 AM
To: log4j-user@logging.apache.org
Subject: Logging objects

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
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

View raw message