Answered by:
How to write and check log for windows phone enterprise app

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
- Edited by jennifer.zhang Monday, February 2, 2015 9:58 AM
Monday, February 2, 2015 9:56 AM
Answers
-
The easiest way I see to achieve this goal is to provide a feedback page, search on app local storage to find the log file, ask the end user to click button to submit any feedback and post the log file. You can set up a server to receive that file.
Try read this blog about consuming RESTful service in windows phone programming to get started. http://blogs.msdn.com/b/wsdevsol/archive/2014/01/09/consuming-rest-services-in-your-windows-store-and-phone-applications.aspx.
- Proposed as answer by Herro wongMicrosoft contingent staff Monday, February 16, 2015 2:03 AM
- Marked as answer by Herro wongMicrosoft contingent staff Tuesday, February 17, 2015 1:47 AM
Thursday, February 12, 2015 7:53 AM
All replies
-
You should be able to do it using Isolated Storage Explorer tool. Below link has more information.
https://msdn.microsoft.com/en-us/library/windows/apps/dn629254.aspx
Monday, February 2, 2015 6:57 PM -
I tried according to your guide, but got error : Access is denied...
Thanks
Jennifer
Tuesday, February 3, 2015 7:42 AM -
The easiest way I see to achieve this goal is to provide a feedback page, search on app local storage to find the log file, ask the end user to click button to submit any feedback and post the log file. You can set up a server to receive that file.
Try read this blog about consuming RESTful service in windows phone programming to get started. http://blogs.msdn.com/b/wsdevsol/archive/2014/01/09/consuming-rest-services-in-your-windows-store-and-phone-applications.aspx.
- Proposed as answer by Herro wongMicrosoft contingent staff Monday, February 16, 2015 2:03 AM
- Marked as answer by Herro wongMicrosoft contingent staff Tuesday, February 17, 2015 1:47 AM
Thursday, February 12, 2015 7:53 AM