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:
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