Hi all, 

But doing like this will the stack trace be logged ,  this will log the
error message as defined by that exception isnt it?

Regards
Rohith

-----Original Message-----
From: Thomas Muller [mailto:[EMAIL PROTECTED]
Sent: Saturday, 30 August 2003 12:28 AM
To: Log4J Users List
Subject: RE: how do I log an exception stacktrace



...
} catch( Exception e ) {
        logger.debug( e.getMessage(), e );
}
...

--

Thomas


| -----Original Message-----
| From: Andreas Bothner [ MTN - Innovation Centre ]
| [mailto:[EMAIL PROTECTED]
| Sent: 29 August 2003 14:55
| To: Log4J Users List
| Subject: how do I log an exception stacktrace
| 
| 
| Hi,
|  
| I apologize if this is a stupid question, but how would I log out an
| exception's stacktrace using logger.debug() ?
|  
| Regards,
| Andreas Bothner
| Systems Integrator
| 
| 
| NOTE: This e-mail message is subject to the MTN Group disclaimer 
| see http://www.mtn.co.za/email_disclaimer.asp
| 
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 


*************************************************************************
Copyright ERA Technology Ltd. 2003. (www.era.co.uk). All rights reserved. 
The information supplied in this Commercial Communication should be treated
in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

This e-mail is for the use of the intended recipient(s) only.  If you have
received this e-mail in error, please notify the sender immediately and then
delete it.  If you are not the intended recipient, you must not use, disclose
or distribute this e-mail without the author's permission.  We have taken
precautions to minimise the risk of transmitting software viruses, but we
advise you to carry out your own virus checks on any attachment to this e-mail.
We cannot accept liability for any loss or damage caused by software viruses.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to