How to report errors (Java using log4j), conveying information about an error
I have seen a lot of information using log4j for logging errors and information but I have seen little information on what to actually put in a error report.

I guess it depends on the domain, but what are your best practices for reporting an issue.

If I am on a web application server, how do you normally log errors?

I think just reporting the exception stack trace is a bad practice.

So far, I normally include:

 - Call calling class or method that generated the error. Some report
 - error id (E.g. EID=0093) and then mapping the error id to some external documentation     
 - Processing time at of error (if available, how
   long did the previous function call take to execute) 
 - Directory and file information.  If I am working with a file, I try to report the
   full path of the file in the event of file not found errors


How to report errors (Java using log4j), conveying information about an error
===

I have seen a lot of information using log4j for logging errors and information but I have seen little information on what to actually put in a error report.

I guess it depends on the domain, but what are your best practices for reporting an issue.

If I am on a web application server, how do you normally log errors?

I think just reporting the exception stack trace is a bad practice.

So far, I normally include:

 - Call calling class or method that generated the error. Some report
 - error id (E.g. EID=0093) and then mapping the error id to some external documentation     
 - Processing time at of error (if available, how
   long did the previous function call take to execute) 
 - Directory and file information.  If I am working with a file, I try to report the
   full path of the file in the event of file not found errors

