如何在Metro Style App中将日志或文本文件写入文件系统 [英] How to write a log or text file to the file system in Metro Style App

查看:94
本文介绍了如何在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

这篇关于如何在Metro Style App中将日志或文本文件写入文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆