locked
How to write and check log for windows phone enterprise app RRS feed

  • Question

  •            We have developed a windows phone enterprise app for our customer, this app will be deployed thorough MDM solution, that is , being installed automatically after the device sucessfully enrolled into the MDM server.

               Our customer required that if this app failed, there should be some log file they could send to us for identify the cause.

               So we catch exception in the app and write the exception message into IsolatedStorage as log file , as following:

    ...

    var appStorage = IsolatedStorageFile.GetUserStoreForApplication();

                        using (writer = new StreamWriter(appStorage.CreateFile("errlog.log")))
                        {
                            writer.WriteLine(format, arg);
                            writer.Close();
                        }

    ...

                There seemed no problem to write the log with above code. but the problem is , how can the user get the errlog.log to send to us? I tried both Windows phone power tool and IsoStoreSpy tool,  they both seemed not able to read the isolatedstorage for the application to get errlog.log due to this application not installed by themselves.

              Any suggestions?

    Many Thanks

    Jennifer


    Monday, February 2, 2015 9:56 AM

Answers

All replies