如何在Metro Style App中将日志或文本文件写入文件系统
正如标题所述,我想将我的应用程序的活动日志自动写入文件中.我的应用程序是用Javascript/HTML5构建的,在调试时,我可以使用console.log("this is a debug log")
并在控制台中对其进行跟踪.但是,如果要将测试机提供给某些测试用户,则希望能够跟踪活动日志.
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.
当然,只需写出一个文件即可.此处的示例: http://code.msdn.microsoft.com/windowsapps/File-access-sample-d723e597
Sure, just write out a file. Example here: http://code.msdn.microsoft.com/windowsapps/File-access-sample-d723e597