logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Taylor <donald_l_taylor...@yahoo.com>
Subject Re: Logging Exceptions
Date Wed, 05 Sep 2001 12:16:33 GMT
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?

-- Don

--- Andrew Premdas <Andrew.Premdas@teleca.com> wrote:
> First post ...
> 
> Currently there are two ways to log throwables
> 
> cat.xxx(t)
> and cat.xxx(message,t)
> 
> the first just displays the exception message and the second displays
> the
> stack trace. It would be preferable if this was configurable, so you
> could
> specify in the config file whether the stack trace should be logged.
> Then
> you wouldn't have to make the choice when coding.
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

---------------------------------------------------------------------
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