Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Stack Traces in logs

800241Feb 6 2007 — edited Feb 6 2007
hi all, I am sure this is simple and I will hit myself when I see the answer, but I am trying to resolve how to get a stack trace in my log files. I have tried logging the error with e.getStackTrace(), but that only gives me the memory location of the stackTrace and not the actual contents. I have also tried to use to string on it but that did not help either. I am trying to see an SQLException in logs using log4j on a webapp. Can anyone suggest what I might be doing that is blatantly wrong ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2007
Added on Feb 6 2007
2 comments
182 views