I guess because you have no server-side component then will have to build what 
you are suggesting. Because yes, only by configuring debug will it spit out the 
logging statements. But be very careful, doing a rolling log is nice, but this 
is on a client PC and you dont want to fill up the hard drive, make sure it 
only keeps the last 5 days of something like that.
 
Best of luck and do share with the community, maybe someone else will have the 
same use case in the future.
 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Shahid 
Faiz
Sent: Wednesday, October 08, 2008 10:34 AM
To: [email protected]
Subject: Re: [flexcoders] Log4J like library



@Howard: Actually I am developing AIR application and I don't have any my own 
server side where I can deploy any web service for logging. That's why I 
require some logging mechanism which will store information on user machine 
like all desktop applications do.

@Dimitrios: I think, current logging framework provides TraceTarget and it logs 
output only when application is running in Flash Player Debug version. Isn't 
it? Also to enable this logging, we will have to first ask user to configure 
this trace logging in mm.cfg and then application will start logging and may be 
on second run actual problem doesn't happen.

Of course, build in framework provides a very nice foundation classes. I am 
thinking of few helper classes like RollingFileTarget (which will log messages 
to a file and it will be rolling), and LogConfigurator (it will configure 
logging system from a config file) etc. Does this make sense?

- Shahid


On Wed, Oct 8, 2008 at 6:25 PM, Dimitrios Gianninas <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]> > wrote:


        

        Howard is right... remember if you create a logging framework that logs 
things the client app is doing, the log will be generated on every end-users 
computer...do u intend to retrieve all logs files from all users when an error 
happens? Kinda difficult. Use the existing logging framework and logs all 
critical stuff in there, when an error occurs, have your tech dept call the 
end-user reproduce the problem and get the flashlog.txt file right then and 
there.
         
        Dimitrios Gianninas
        RIA Developer Team Lead
        Optimal Payments Inc.
         

________________________________

        From: [email protected] <mailto:[email protected]>  
[mailto:[email protected] <mailto:[email protected]> ] On 
Behalf Of Howard Fore
        Sent: Wednesday, October 08, 2008 6:30 AM
        To: [email protected] <mailto:[email protected]> 
        Subject: Re: [flexcoders] Log4J like library
        
        

        

        How do envision such a component working? Given that Air and Flex are 
front-end technologies, wouldn't the log storage be on the back-end, thus 
implying both some communication between the two and the back-end component 
that does the log writing and storage? You could create a web service (written 
in Java, ColdFusion, .Net, etc) to catch the log events coming from the AIR app.
        
        
        On Wed, Oct 8, 2008 at 1:41 AM, Shahid Faiz <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]> > wrote:
        

                Thanks for the link. I have looked at myflex.org, cimlogbook 
<http://code.google.com/p/cimlogbook/> ,  renaun.com 
<http://renaun.com/blog/flex-components/> , and log4f 
<http://sourceforge.net/projects/log4f/>  but they don't provide 
functionalities that are required for an AIR app. For example I am searching 
for Rolling File Target, externally file based configuration etc.
                



        -- 
        Howard Fore, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
        "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
        

        

AVIS IMPORTANT

WARNING

Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système. La lecture, la distribution, la copie ou tout 
autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient. No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message. If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful. If you have received this e-mail in error, please notify the 
sender.

        


 

-- 
WARNING
-------
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

Reply via email to