2 Replies Latest reply on Feb 7, 2010 11:06 PM by Ansury

    Logging in flex

    194642537 Level 1

      Hi All,

       

       

          Is there any way to create logs in flex .

       

       

      for example

      try

      {

       

           ..........

      }

       

      catch(e:Error)

      {

       

      }

       

       

          I want to write the error message in a log file at a specified destination.

       

       

      Its become difficult to track errors for me now..

       

      Can u please share code ?

       

      Thanks,

      Ravisha

        • 1. Re: Logging in flex
          Madhav Subedi Level 4

          you can send the error to server script via httpservice and write in files.

          • 2. Re: Logging in flex
            Ansury Level 3

            This may seem an odd question but it actually has it's applications... are you asking about "local" client logging for development purposes (if you can't or don't want to use the console w/trace() for some reason, small screen resolution etc.), or persistent logging to a server or database?  You can also log to a server with Flex remoting via RemoteObject which is better than httpservice in my biased opinion.