Mike, Ken, thanks.  I should have seen that.

-Mark

-----Original Message-----
From: Michael Mason [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 11, 2001 1:52 AM
To: 'LOG4J Users Mailing List'
Subject: RE: Stack trace when logging exception?


> When logging an exception object, is there anyway to print 
> out the stack
> trace information?  Right now, it seems to only print the 
> exception message.
> Is there a way to configure the output settings?

If I do

  myCategory.error("Caught an exception", e);

if prints the stack trace for me. I haven't done anything special
when configuring my output settings. I normally actually do this:

  myCategory.error("Caught an exception: " + e.getMessage(), e);

Cheers,
Mike.

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