What to log when an exception is raised
<p>Until now I was logging the Error message and the stack trace of an exception. However, I don't think doing that is very helpful, if I don't log all the variables used inside the try block. If I can see all the variables used inside the try block, I think I will have a better idea on what caused the exception and may be I can avoid it from happening again. </p>

<p>What do you guys log?</p>

<p>Thanks</p>
