powered by Jive Software

Enable logging?

I have searched this website, forums and google to no avail.

How do I enable log messages in SparkWeb? Specifically the XIFF framework has log statements scattered throughout, for example:

XMPPBOSHConnection.as (line 317)

logger.info(“INCOMING {0}”, rawXML);

I am getting an error message from SparkWeb that has something to do with login and I would like to see the log statements and XML to debug my problem. Keep in mind that I am new to Actionscript and Flex.

Any help will be greatly appreciated. Thanks.

I only see those log messages when running inside Flex Builder in debug mode

I don’t have Flex Builder

I did download the Flex SDK (free) and was able to compile SparkWeb.

Is there anyway to display the log messages in a Textfield inside the running application?

Thanks.

While searching google, I found this:

http://livedocs.adobe.com/flex/3/html/help.html?content=logging_09.html

Which had some useful information for logging messages to flashlog.txt

So I added this to SparkWeb.mxml:

<mx:TraceTarget level=“0” includeDate=“true” includeTime=“true” includeCategory=“true” includeLevel=“true”>

mx:filters

mx:Array

mx:String*</mx:String>

</mx:Array>

</mx:filters>

</mx:TraceTarget>

It builds successfully but when I copy it to my web server and load it in Safari 3.2.1 I get a bunch of these error messages:

ReferenceError: Error #1065: Variable SparkWeb__embed_css_messenger_swf_ScrollThumb_overSkin_2007563738 is not defined.

 at flash.display::MovieClip/nextFrame()
 at mx.managers::SystemManager/deferredNextFrame()
 at mx.managers::SystemManager/preloader_initProgressHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.preloaders::Preloader/timerHandler()
 at flash.utils::Timer/_timerDispatch()
 at flash.utils::Timer/tick()

I am building SparkWeb on the Mac OS X command-line using Flex 3 and default build/build.xml file.

Any advice?