You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Brendan Lawlor <br...@spokesoft.com> on 2003/03/06 16:31:52 UTC

Logging stack traces

Hi,
   In the hope that this isn't a lame question which I'll regret asking:

How can I log a stack trace from an exception? Normally I have to pass the
printStackTrace method a PrintWriter, which is fine for System.out, but not
for log.debug...

Any help appreciated,
Brendan.


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