I haven't read your mail but I guess my needs are close to what you call
"ThrowableRenderers":

There is no pattern for Throwables in the PatternLayout. The throwable is
just dumped after the log statement.
We need it in our project and I have temporarily disabled the stacktrace
dump by subclassing the PatternLayout class (returning false in the
ignoresThrowable method)...

Fabrice


-----Original Message-----
From: Jon Skeet [mailto:[EMAIL PROTECTED]]
Sent: mercredi 5 septembre 2001 14:20
To: LOG4J Users Mailing List
Subject: RE: Logging Exceptions


> I'm afraid you'd still have to make the choice in coding
> simply because
> you may not want to log some exceptions, but may want to log others. I
> could see your point though if you were advocating configuring the
> logging of exceptions on a class-by-class bases.
>
> For example you may want to enable logging for java.sql.SQLException,
> but disable it for java.lang.ClassCastException. Is this what you had
> in mind?

Note - this is something that would be possible if my suggestions in the
Dev mailing list about having ThrowableRenderers (or whatever) and being
able to configure renderers get taken up :)

Jon



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



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

Reply via email to