String myApp = "My App";
long appId = 0x8b979f96520ee725L;
EventLogger.register (appId, myApp, EventLogger.VIEWER_STRING);
String logMessage = "This is a test";
if (EventLogger.logEvent (appId, logMessage.getBytes()))
{
System.out.println ("Log successful");
}
Enjoy!
Note: To see how to get the guid 0x8b979f96520ee725L see my next post.
(Blackberry)
No comments:
Post a Comment