LogEntry StackTrace [message #102638] |
Thu, 06 December 2007 12:08 |
Eclipse User |
|
|
|
Originally posted by: dieter.schulten.d-velop.de
Hello *,
i am using org.eclipse.equinox.log_1.0.100.v20070226 (Eclipse 3.3)
as osgi logging implementation for a small server application build
on equinox. I also implemented my own LogListener so i get informed
about new log events.
Everything is working just fine, but i am not able to get the stacktrace
of a LogEntry. I understand that the original exceptions are converted
to implementation specific exceptions like
"org.eclipse.equinox.log.LoggedException", but gets the stacktrace lost?
public void logged(LogEntry arg0) {
if (arg0.getException() != null) {
// this command show about 21 lines of the stacktrace on the console
arg0.getException().printStackTrace();
// The length of the stacktrace is zero (no stacktrace)
arg0.getException().getStackTrace().length
}
}
Is there a way to get the whole stacktrace of a logged exception?
Does anyone have any idea or workaround?
(maybe i have an understanding problem?)
best regards
dieter
|
|
|
|
Powered by
FUDForum. Page generated in 0.03036 seconds