Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® OS Smartphones

Reply
Highlighted
Developer
Posts: 32
Registered: ‎08-26-2008
My Device: Not Specified
Accepted Solution

How to log Exceptions with EventLogger.logEvent(long guid, byte[] data, int level) ?

I see in the EventLogger class there is a VIEWER_EXCEPTION that interprets an event's byte[] as a stack trace. How do I log this in the first place? Say I catch a Throwable, and want to save the trace somewhere. I would need to convert an Exception to a byte[].

 

Thanks!

Developer
Posts: 32
Registered: ‎08-26-2008
My Device: Not Specified

Re: How to log Exceptions with EventLogger.logEvent(long guid, byte[] data, int level) ?

Sorry, this is the wrong group. i'll repost in the Java Development group, since I can't figure out how to move it.