John,
Thank you very much for your response.
We will give it a try and provide feedback.
Regards.
--
Anas Mughal
 


John Grden <[EMAIL PROTECTED]> wrote:
Hey Anas, I've put out a test version of Xray's flex2 logger which comes with a panel component if you don't have the xray interface to see your trace out put.  Chris and I modeled it after log4j style of logging.

here's an email I sent a while ago about it:

I'm in the very early stages of getting Xray's connector ported over the AS3 and the first step has been to get the new Logger up and running.  So far, it's working great and I've included an OutputPanel.mxml that users can include it in their app if they don't want to use the xray interface ( plus, i've not implemented log level switching with xray's interface yet ).

http://mirror1.cvsdude.com/trac/osflash/ xray/browser/downloads/connector/flex/XrayLogger_as3_alpha.zip?format=raw

screenshot:
http://www.rockonflash.com/ xray/images/XrayLogger_Flex2_withInterface_0.png

some featurues:
1.  log level support (debug, info, warn, error, fatal)
2.  time stamp
3.  Calling method is reported
4.  objects are recursed
5.  outputs to Xray's interface if you have it running

OutputPanel features (not necessary for running logger):
1.  runtime log level control
2.  Resizeable (drag lower right corner)
3.  Window shade by double clicking header of OutputPanel's header area
4.  Search

Usage:
copy com.blitzagency.xray.logger  into your classes/src folder

if you want to use the OutputPanel (optional):
copy OutputPanel.mxml to your src folder or where ever your main app is.

Add this line to your app:
<ns1:OutputPanel id="outputPanel"/>

Add this property to your mx:Application node:
xmlns:ns1="*"

Using it in your app:
import com.blitzagency.xray.logger.XrayLog;
.............
public var log:XrayLog;
.............
log = new XrayLog();
log.debug(message:String [, dump:object]);
log.info(message:String [, dump:object]);
log.warn(message:String [, dump:object]);
log.error(message:String [, dump:object]);
log.fatal(message:String [, dump:object]);

I've included the FlashDevelop project in the zip.  I would love suggestions/comments on implementation and features.  Right now, it doesn't color code the output based on the log level, but that is something I'm looking into.

Anyway, if anyone wants to give it a whirl, I'd really appreciate the feedback,



On 9/28/06, Anas Mughal <[EMAIL PROTECTED]com> wrote:
I am wondering if there is some sort of logging mechanism that I could use to log messages/errors from a Flex application. I would like the log to be created on the server.
 
It would be great if there is something like Log4J in Flex.
 
Thank you for your advice.
--
Anas Mughal

Stay in the know. Pulse on the new Yahoo.com. Check it out.



--
[  JPG  ]


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min. __._,_.___

--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to