10-06-2011 07:14 PM
I try writing debug statement to event log. Here are the steps I did
1) Create UID 2) register with event log EventLogger.register(LOGUID, "My Event Log", EventLogger.ALWAYS_LOG).
3) EventLogger.logEvent(LOGUID,msg.getBytes(), EventLogger.ALWAYS_LOG).
On the Blackberry phone, I set eventlog option set to Min log level to Debug Info and Filter Setting to check My Event Log.
I do not see any log output to eventLog. Do I miss anything here?
Thank you in advance.
10-07-2011 12:39 PM
Try extracting the whole log using this command:
javaloader -u eventlog > mylog.txt
javaloader.exe is a command line tool included with the BlackBerry Java SDK and BlackBerry JDE.
10-10-2011 11:22 AM
Thank you Mark. I extracted eventlog. But I do not see the debug log.
10-11-2011 11:15 AM
Are you sure that the event logging code ran? Try stepping through with the debugger attached.
10-11-2011 11:17 AM
Thanks. I am able to write the debug log to the event log.