Use logging with your Composite Application Framework app

Adobe forums served up some nice information about logging runtime messages for your Composite Application Framework (aka Mosaic) apps. The Client Component Framework (codename: Gravity) provides the logging libraries….Composite Application Framework runs on Client Component Framework….here’s how to get those logger juices flowing:

<quote>

Yes, Gravity logging APIs can be used in Mosaic as-is. To view the log output:

1.       Open CRXDE lite in a browser and log in
2.       Navigate to /libs/mosaic/components/index/index.jsp
3.       Locate the line in the file that initializes the flashvars variable. In 10.0 this should be on line 65
4.       After that line, add a new line:

flashvars.mdebug = true;

5.       Click the “Save All” button to save the changes

Then, when a new application is launched, a debug window will appear with a “Log Viewer” tab. Note that the debug window will appear in the upper left corner of the browser in a layer that will be behind html or pdf content, so if your application’s layout has html or pdf content in the upper left region you may not be able to see the debug window.

</quote>

What was the OP’s result you may ask?

“That debug window certainly is useful. It has much more useful information than I was expecting. The DOM Viewer is especially nice. It is good to be able to confirm which libraries get loaded.”

 

This is the forum post:  http://forums.adobe.com/message/3973532#3973532

Here are the Composite Application Framework docs: http://help.adobe.com/en_US/enterpriseplatform/10.0/AEPDeveloperGuide/WS6e4bbd81fea965ef18585f3012fda7a1d5e-8000.html

Here are the Client Component Framework docs: http://help.adobe.com/en_US/enterpriseplatform/10.0/AEPDeveloperGuide/WS3ad6fd7a5b41dea4-28996cf812f6f54ab88-8000.html

Client Component Framework ActionScript reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html?filter_livecyclees=10.0&filter_flashplayer=10.2&filter_air=2.6#top — see the com.adobe.gravity.* packages.

Scott

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)

One Response to Use logging with your Composite Application Framework app

  1. Pingback: The ADEP Post | Use logging with your Composite Application Framework app