Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log Exceptions

Status
Not open for further replies.

samit700

Programmer
Sep 23, 2003
52
US
Hi,

I am logging my exceptions in my log file. What is the best way to log an exception into the log file using log4j. for example:

try
{
---
throw e;
}
catch(Exception e)
{
// how to log e into log file
}

I don't want to log only the message but the full stack trace.

Thanks,
Samit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top