You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Jon Skeet <jo...@peramon.com> on 2001/09/05 12:38:29 UTC
Throwable rendering?
Is there any reason why Throwable arguments shouldn't have
ObjectRenderers associated with them, instead of just the message
argument? At the moment I've got my own Layout class which is
essentially just a PatternLayout with different Throwable rendering - it
strikes me that being able to render a Throwable in a custom way should
be fairly simple to achieve and quite useful to various people. For one
thing, those of us using JDK 1.4 could use a renderer which used the
extra functionality provided rather than parsing a stack trace.
I suspect there's a reason why this is a bad idea, but I'd like to hear
it if so :)
Jon
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org