logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: log4j ObjectRenderer
Date Thu, 24 Jul 2003 13:11:55 GMT

Howdy,
The log4j configuration doesn't let you associate a renderer with a
layout.  You write the renderer and render the object however you want.
The layout is associated with an appender.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: write2vishu [mailto:write2vishu@tatanova.com]
>Sent: Thursday, July 24, 2003 7:20 AM
>To: log4j-user@jakarta.apache.org
>Subject: log4j ObjectRenderer
>
>Hi,
>
>I have implemented the ObjectRenderer feature in my project and
>registered the ObjectRenderer in the properties file. e.g:-
>log4j.renderer.com.messaging.core.client.util.CustomerOrder=com.messagi
ng.c
>ore.client.util.CustomerOrderObjectRenderer
>log4j.appender.A1.layout.ConversionPattern: %d{yyyy-MM-dd HH:mm:ss}
%-5p
>%-20c{3} [%x] %m%n
>ObjectRenderers can be used to format the output as required.Hope i am
>right.How do i associate ObjectRenderer with Layout in the
log4j.properties
>file?Anything other than this,do i need to set in the log4j.properties
file
>to format the output as required for ObjectRenderer?
>Thanks & Regards,
>Vishu.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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


Mime
View raw message