How to write a log or text file to the file system in Metro Style App

末鹿安然 提交于 2019-12-24 08:48:51

问题


As the title said, I would like to write an activity log of my application into a file automatically. My application is built in Javascript/HTML5, when I am debugging I can use console.log("this is a debug log") and track it in console. But if I want to give my test machine to a certain test users, I want to be able to track the activity logs.

Is there any way that I can do that.


回答1:


Sure, just write out a file. Example here: http://code.msdn.microsoft.com/windowsapps/File-access-sample-d723e597



来源:https://stackoverflow.com/questions/10133638/how-to-write-a-log-or-text-file-to-the-file-system-in-metro-style-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!