logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doug b <ummmm...@yahoo.com>
Subject Re: Loggin exceptions
Date Wed, 12 Dec 2001 16:54:33 GMT
the log4j methods debug, warn, error, etc.  have 2
signatures.  one takes just an Object, but one takes
both an Object and a Throwable.  if you call the one
that takes a Throwable, a stack trace will be logged.

--- "Hosahalli, Raghu"
<Hosahalli.Raghu@SUMMITSITE.COM> wrote:
> Hi,
> 
> I am facing a basic problem related to log4j.
> I want to log exception stack traces which are
> useful for debugging.
> In Throwable class
> void printStackTrace() - prints into "System.err"
> The remaining two prints into "PrintStream" or
> "PrintWriter".
> 
> how to use these methods to log using log4j.
> 
> Thanks in advance
> 
> Regds
> Raghu Hosahalli
> 
> --
> To unsubscribe, e-mail:  
> <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:log4j-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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


Mime
View raw message