logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shay Mandel <shay...@mercury.co.il>
Subject methodology for using Log4j
Date Sun, 09 Dec 2001 06:43:03 GMT

Is there some methodology of using log4j for providing errors/exceptions? I
want to log my exceptions as they occur, but I want the stack trace only
once in the log file. I thought of logging it only in the first place I
catch the exception (before throwing it upwards). The problem is, what if
the log level in this place is too low (like warn) and in the upper level it
is higher (like fatal). In this case, if the log level is set higher than
the one I logged in the first place I catched the exception (e.g. set to
fatal or error) then I will never see the stack trace. Is there any
methodology for doing this?


Shay Mandel.

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

View raw message