Re: How get e.printStackTrace() text to print to log4j file?

2006-10-26 Thread Maarten Bosteels
catch (Exception e) { logger.error ("something wrong", e); // or logger.debug ("something wrong", e); ... } On 10/26/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: If I log the e.getStackTrace().toString() it just shows the object hash. How can I get the output of the e.printStackTrace

RE: How get e.printStackTrace() text to print to log4j file?

2006-10-26 Thread Andrews, Trent - 43
Assuming you are in a try catch do something like Try { } catch (Exception e) { logger.error("Error Performing Operation",e); } Trent Andrews [EMAIL PROTECTED] -Original Message- From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 1:40 PM To: Log4