Code fragment:
Class GUID variable definition
Long GUID = 0x9c805919833654d6l;
Thing a, register, or the following code does not error, but does not record events
Eventlogger.register (GUID, "Lmlogger", eventlogger.viewer_string);
Logging Events
String eventdata = "' Installapp:filename";
Eventlogger.logevent (GUID, Eventdata.getbytes (), eventlogger.always_log);
Optional:
On the development PC, execute commands to clear the phone log
Javaloader-u ClearEventlog
Check the eventlog directly on the phone
Hold down the ALT key and press LGLG (all lowercase)
or export text to view on the computer
Javaloader.exe-u EventLog > Mylog.txt
See the event on the phone
Click on the event to view the details
Optional:
On the development PC, execute a command to view the phone log
Javaloader-u EventLog > A.txt
Reference: A good article, there is a picture of the truth
eventlogger:printf for BlackBerry
--using the EventLogger feature of the BlackBerry to record important events
Http://www.linux-mag.com/cache/7684/1.html