logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <...@urbanet.ch>
Subject Re: ObjectRenderer
Date Tue, 16 Jan 2001 13:57:25 GMT

Randall,

Exceptions are not transformed through the usual object rendering 
mechanism, they are seen as is by all layouts and appenders.. So I don't 
think you have to do anything special here, except of course write an 
appender that re-formats your  InvalidSKUException in XML. I hope this 
helps, Ceki

At 12:00 15.01.2001 -0800, you wrote:
>Hi,
>
>Is there an easy way to associate an ObjectRenderer with a specific
>appender?  What we'd like to do is:
>
>    Category cat = Category.getInstance(hierName);
>    ...
>     try {
>         // process
>     }catch(InvalidSKUException e ) {
>         cat.error(e);
>     }
>
>and log to syslog with a standard PatternLayout, while also
>logging to another appender using an InvalidSKUExceptionRenderer to
>render the exception in XML (or whatever), without having
>mulitiple calls to error on multiple categories.
>
>Thanks,
>
>Randy
>
>
>
>--
>Randy Ballew, Senior Application Architect, Intraware, Inc.
>     925.253.4507
>     rballew@intraware.com
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

---
Freedom as in the capacity to exercise choice.


Mime
View raw message