Application:Lumberjack
Lumberjack - 0.5.0
Summary
Lumberjack is an on-device logging tool. It allows you to view and follow the logs for specific applications from the /var/log/messages file.
Its goal is to make debugging apps without a workstation better and easier.
FAQ
How is the "Retrieve Log" different from the "Follow Log"?
Applications are always logging to the /var/log/messages file, the Retrieve Log button gets the entire log since it was last cleared. Where as the Follow Log displays the log in real-time.
• The Follow Log displays logs in real-time.
• The Retrieve Log displays a static once look, but this can be updated by selecting the refresh button.
What is "Resource Monitor"?
A graph of dom nodes and resource handles over time.
What is "Scene Timing"?
Parses the time a scene takes to display.
What is "LS2 Monitor" (webOS 2.x) and "DBus Capture" (webOS 1.x)?
The LS2 Monitor and DBus Capture buttons follow service requests in real time. It will show which applications are sending out requests and what the service returns.
For example an application will request GPS services, the log will show this request and what data the service responds to the request.
In webOS 1.x requests went over DBus, and in webOS 2.x they use LS2. What Lumberjack sees is the same.
How do you write to logs?
• Mojo.log events to document and debug their apps. For more information on this technique see Palm's API documentation here Mojo.Log
• Logging can also be displayed with javascripts alert() function, and can by viewed in lumberjack by selecting "Alerts" in the "What to look for" list.
What's the difference between cleaned and raw log scene formats?
• Raw log, copies the exact row from the messages file
2010-10-17T10:51:20.712188Z [1070190] palm-webos-device user.crit LunaSysMgr: {LunaSysMgrJS}: org.webosinternals.lumberjack: Error: Test Error Message, palmInitFramework346:2520
• Cleaned log is formatted
[2010-10-17 10:51:20] (Lumberjack) Error: Test Error Message
How can I view log with Linux Access?
tail -f /var/log/messages
NOTE
Preferences
The Lumberjack preferences screen can be accessed by tapping the menu button on the top left corner of your device.
The Global group:
- Theme - Changes the applications viewing theme between the standard Palm default (light) theme or the Palm Dark theme.
- Log Level - Sets the type of log events you want Lumberjack to display.
- Don't Change - Won't change your current setting when Lumberjack is opened.
- Alert - example: alert("I have" + 3 + "eggs.");
- Error - example: Mojo.Log.error("I have", 3, "eggs.");
- Warning - example: Mojo.Log.warn("I have", 3, "eggs.");
- Info - example: Mojo.Log.info("I have", 3, "eggs.");
The Main Scene group:
- List Stock Apps - When enabled will list stock apps (dialer, calendar, clock, email, etc)
- Log in New Card - When enabled some log scenes will automatically pop out into their own card
The Log Scenes group:
- Font Size
- Normal
- Paul Bunyan
- Copy Format
- Raw Log
- Cleaned