[flexcoders] logging to server?
I've been reading the documents on Flex logging. It seems like there's a pretty good API for logging to the place where trace() calls go, or to a file on the client, or to the server if you're using one of the Flex data services like LCDS. I want to log some data and messages that will go to a file on the server, and I'm not using LCDS, and so far I don't see a way to do it. Is there something built in that I missed? If not I can develop it on my own. Thanks.
RE: [SPAM] [flexcoders] logging to server?
Other than LCDS, there is no built-in server functionality, in order to preserve platform independence. However, basic server communications can be extremely simple. The HTTPService protocol is the simplest to use, unless you are comfortable with java/amf/remoteObject. WebService uses SOAP, which adds a layer of complexity you do not need for something like logging. Devise a standard xml format for your logging, build the xml in flex and send() it to the server using HTTPService. On the server grab the xml using querystring or form variables, depending on which method you use with your HTTPservice call (Post tends to be the most flexible), and use the server functionality to write it to a log file. I use VB.net for most of my server side stuff, what would be your choice? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of mitchgrrt Sent: Monday, December 28, 2009 6:42 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] logging to server? I've been reading the documents on Flex logging. It seems like there's a pretty good API for logging to the place where trace() calls go, or to a file on the client, or to the server if you're using one of the Flex data services like LCDS. I want to log some data and messages that will go to a file on the server, and I'm not using LCDS, and so far I don't see a way to do it. Is there something built in that I missed? If not I can develop it on my own. Thanks.
Re: [SPAM] [flexcoders] logging to server?
We have server side Java, and an existing XML/Web Services framework for communicating between Flex and Java. I'll add a logging interface. It shouldn't be hard, like you say. I just wanted to double check that I hadn't missed the chance to use something that's already built in. Thanks. - Mitch Gart --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Other than LCDS, there is no built-in server functionality, in order to preserve platform independence. However, basic server communications can be extremely simple. The HTTPService protocol is the simplest to use, unless you are comfortable with java/amf/remoteObject. WebService uses SOAP, which adds a layer of complexity you do not need for something like logging. Devise a standard xml format for your logging, build the xml in flex and send() it to the server using HTTPService. On the server grab the xml using querystring or form variables, depending on which method you use with your HTTPservice call (Post tends to be the most flexible), and use the server functionality to write it to a log file. I use VB.net for most of my server side stuff, what would be your choice? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of mitchgrrt Sent: Monday, December 28, 2009 6:42 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] logging to server? I've been reading the documents on Flex logging. It seems like there's a pretty good API for logging to the place where trace() calls go, or to a file on the client, or to the server if you're using one of the Flex data services like LCDS. I want to log some data and messages that will go to a file on the server, and I'm not using LCDS, and so far I don't see a way to do it. Is there something built in that I missed? If not I can develop it on my own. Thanks.
[flexcoders] Logging in flex (urgent help)
Hi All, Can anybody help me in creating logs in flex. For example when i click a button it should create a log in a file in specified destination
RE: [SPAM] [flexcoders] Logging in flex (urgent help)
For logging in production, look into to the mx.logging classes in the docs. For debugging I just use trace(). Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Shashi Sent: Wednesday, December 02, 2009 1:24 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Logging in flex (urgent help) Hi All, Can anybody help me in creating logs in flex. For example when i click a button it should create a log in a file in specified destination
[flexcoders] Logging API
Am I missing something or as much as I can write a class that implements ILogger there is no way to actually use it? I can't see anyway to specify the ILogger to be used and Log just uses LogLogger by default, as per usual all the variables are private in Log so can't be accessed, the class is static so cant be overriden, so the only option seems to be to clone the Log class and then just not use Log anywhere in our apps?? Also once logging a category there is no way to stop short of calling flush and dumping everything?
Re: [flexcoders] Logging API
You can add your own logger with Log.addTarget(yourLoggerInstance) or simply define it in MXML like here: http://soenkerohde.com/2008/08/sos-logging-target/ On 15.09.2009, at 10:44, reflexactions wrote: Am I missing something or as much as I can write a class that implements ILogger there is no way to actually use it? I can't see anyway to specify the ILogger to be used and Log just uses LogLogger by default, as per usual all the variables are private in Log so can't be accessed, the class is static so cant be overriden, so the only option seems to be to clone the Log class and then just not use Log anywhere in our apps?? Also once logging a category there is no way to stop short of calling flush and dumping everything?
Re: [flexcoders] Logging best practice
On Wednesday 09 Jul 2008, Richard Rodseth wrote: My understanding is that it's OK to include trace() statements in a release build. Please set me straight if that's not the case. Anyone can see the output of them, iirc, with the debug player. It's up to you, but I'd want them stripped out. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Logging best practice
I was delighted to learn recently about this: http://www.pixelate.de/blog/debug-and-release-builds-with-as3-conditional-compilation So I thought I'd pass that along. So now I can wrap some asserts and alerts in CONFIG::debug. My understanding is that it's OK to include trace() statements in a release build. Please set me straight if that's not the case.
[flexcoders] Logging
Hi all, Is there any way in which I get the caller function name. As in : class Aclass{ instanceB:Bclass; function a(){ instanceB.b(this) } } class Bclass{ function b(Obj){ // How to trace function name and class name } } I have traced out class name by getFullyQualifiedClassName(Obj) but how to trace function name ??? Please somebody guide me .. its very important for me. Regards
Re: [flexcoders] Logging
You can try throwing Error and catching/parsing stacktrace - depending on compilation settings (debug) you should get method, class and line info Regards Anatole On 1/9/08, learner [EMAIL PROTECTED] wrote: Hi all, Is there any way in which I get the caller function name. As in : class Aclass{ instanceB:Bclass; function a(){ instanceB.b(this) } } class Bclass{ function b(Obj){ // How to trace function name and class name } } I have traced out class name by getFullyQualifiedClassName(Obj) but how to trace function name ??? Please somebody guide me .. its very important for me. Regards
[flexcoders] Logging with SOS
Hi, If you like to log with SOS I have build two little classes to log from Flex/AS3: http://soenkerohde.com/2006/11/06/flexas3-logging-with-sos/ It is very simple but will be extended in the future. Cheers, Sönke -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Logging API
I'm working on a framework/interface for the logging API. Most of it makes sense to me, but one part is still not jiving for me.My goal is to make a dynamic framework that can write to different targets based on the situation or event type. I haven't figured out how, in AS to define my targets.Any thoughts?THanks!!-- John WilkerVice President Software Development/WriterRed Omega Solutions, Inc. www.johnwilker.com / www.red-omega.comEverything changes, nothing remains without change. ~Buddha c.483 bc __._,_.___ -- 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 __,_._,___
[flexcoders] Logging in Flex
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. __._,_.___ -- 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 __,_._,___
Re: [flexcoders] Logging in Flex
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 folderif 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] 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] __._,_.___ -- 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 __,_._,___
Re: [flexcoders] Logging in Flex
John, Thank you very much for your response. We will give it a try and provide feedback. Regards. -- Anas MughalJohn 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.pngsome featurues:1. log level support (debug, info, warn, error, fatal)2. time stamp 3. Calling method is reported4. objects are recursed5. outputs to Xray's interface if you have it runningOutputPanel features (not necessary for running logger):1. runtime log level control2. Resizeable (drag lower right corner)3. Window shade by double clicking header of OutputPanel's header area4. SearchUsage:copy com.blitzagency.xray.logger into your classes/src folderif 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 __,_._,___
Re: [flexcoders] logging options other than the flex builder debugger?
Please see XPanel here : http://www.faratasystems.com/?page_id=45 Regards, Anatole On 8/13/06, aaron smith [EMAIL PROTECTED] wrote: Is there any logging / tracing options out there that I can use other than the current flex builder debugger? I am not building projects with flex builder, using flashdevelop... having a hard time without some sort of logging available. thanks __._,_.___ -- 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 YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] logging options other than the flex builder debugger?
Is there any logging / tracing options out there that I can use other than the current flex builder debugger? I am not building projects with flex builder, using flashdevelop... having a hard time without some sort of logging available. thanks __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Logging in Flex2 - Please help
Hi, We have a created a customTarget which will log the messages to a Debug Console. In the console, we need to display the message and the object that is passed to the logger. For eg: 1)res:Object ; // asuume it is initialized some where else myLogger.info(This is a {1} message, res); The output will look like This is a res.toString() message. 2) In our scenario we don't want the message to be replaced with the content of the 2nd argument. We need to access the object as it is. The current Logging mechanism we dont see a way to achieve this. Even If we can create our own logger and logevent, how does the Log.getLogger be changed to return the customLogger object. Any suggestions? Please help me, this is urgent. Thanks, Santa -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Logging in Flex2 - Please help
It does not look like you can do this with the current logging code. While you can add your own implementation of the ILoggingTarget interface which receives the fully formatted string (after the variable substitution), you cant add your own ILogger implementation for a given category. It is the ILogger class which does the argument substitution and right now that is hard-coded to use the LogLogger implementation class. I think we ship the source for this stuff in the framework/source directory so you can see for yourself. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of santharao246 Sent: Wednesday, August 09, 2006 7:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Logging in Flex2 - Please help Hi, We have a created a customTarget which will log the messages to a Debug Console. In the console, we need to display the message and the object that is passed to the logger. For eg: 1) res:Object ; // asuume it is initialized some where else myLogger.info(This is a {1} message, res); The output will look like This is a res.toString() message. 2) In our scenario we don't want the message to be replaced with the content of the 2nd argument. We need to access the object as it is. The current Logging mechanism we dont see a way to achieve this. Even If we can create our own logger and logevent, how does the Log.getLogger be changed to return the customLogger object. Any suggestions? Please help me, this is urgent. Thanks, Santa __._,_.___ -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Logging tool for Flex 2 : ZTORLog4f (http://sourceforge.net/projects/ztorlog4f)
ZTOR team released version 1.0 of their logging tool for flex2 - ZTORLog4f . It was updated for flex2 official release compliance. __._,_.___ -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Logging API issue
Hi all,I'm playing with f2b3 new logging api and trying to use it in a similar way I'd use java.util.logHowever if the category of the logger contains the : character an exception is thrown. Reviewing the code, I've seen in the Log class a function called hasIllegalCharacters() which explicitly prevents us from using a : character in the category name. I think a really common log would be as follows:[DEBUG] 5/19 23:05 - com.code4net.log.TestLog TestLog object createdBut due to the syntax of the string returned by getQualifiedClassName() the category would be com.code4net.log:TestLog. Here's the code I'm playing with:codepackage com.code4net.rpc { import mx.logging.Log; import mx.logging.ILogger; import flash.utils.getQualifiedClassName ; import mx.logging.LogEventLevel; public class TestLog { private var log:ILogger = Log.getLogger(getQualifiedClassName(this).replace(::,.));public function TestLog() { log.log(LogEventLevel.DEBUG,TestLog object created); } }}/codeAs shown in the code : can be replaced with . but IMHO in large applications this could become an important performance issue. Are category names restricted for some especial reason? Is there any other way to go?BestXavi Beumala -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Logging tool for Flex 2
Hi, all. New free logging tool for Flex 2 was released by ztorteam. you can check it out on: http://flex2.ztor.com/ztorcms.jsp?proj=ztorlog4f -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/