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 Mississippi John Hurt <jo...@gmail.com> on 2006/10/26 20:40:04 UTC
How get e.printStackTrace() text to print to log4j file?
If I log the e.getStackTrace().toString() it just shows the object hash.
How can I get the output of the e.printStackTrace() to a log4j file.
Thanks!
Re: How get e.printStackTrace() text to print to log4j file?
Posted by Maarten Bosteels <mb...@gmail.com>.
catch (Exception e) {
logger.error ("something wrong", e);
// or
logger.debug ("something wrong", e);
...
}
On 10/26/06, Mississippi John Hurt <jo...@gmail.com> wrote:
> If I log the e.getStackTrace().toString() it just shows the object hash.
> How can I get the output of the e.printStackTrace() to a log4j file.
> Thanks!
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org