Hi,

I'd like to be able to output an object to the log as part of the
layout automatically. For example, say I have a class called myObject.
>From my understanding, I first have to implement the ObjectRenderer
interface to handle myObject. Is it possible to specify an object as
part of a layout? For example:

log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x
[MYOBJECTHERE]- %m%n

where MYOBJECTHERE is the result of calling doRender() on an object of
type myObject. Is such a thing possible? Thanks.

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

Reply via email to