View Single Post
  #2 (permalink)  
Old 03-06-2008, 02:03 PM
MJalbert MJalbert is offline
Member
 
Join Date: Mar 2008
Posts: 3
MJalbert is on a distinguished road
Hi all,

The solution is so simple that it's almost stupid (like usual). The trick is to create a log for every line of your error message. Like this:

Code:
super.error("Date: "+date+" "+time); super.error("Type: "+exceptionType); super.error("Description: "+description); for (int i = 0; i < stackTraceElements.length; i++) { StackTraceElement stackTraceElement = stackTraceElements[i]; if (i == 0) { super.error("Error: "+stackTraceElement.toString()); } else { super.error(" "+stackTraceElement.toString()); } } super.error("");


I hope it will help someone one day!

Thanks,

MJalbert
Reply With Quote