How to use the Java API to log event information on a BlackBerry to do code debugging

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.