Windows Phone 实用开发技巧(24):上传日志
In my last post《Windows Phone 实用开发技巧(22):使用日志记录当前信息与异常信息》 , I talked about how to log in our application. Here comes the problem: how can we get the log file. If we run application locally, we can use ISETool to get files stored in IsolatedStorage. But since app users are far away from you. We cannot go to somebody and say “Hey, can I use your phone to get my log back…bala..bala..”
We can make a button that is used to let user to upload logs, use vdisk as destination. We can rename log files with time so that we can distinguish when the log file sent to our space. Here I built a demo app use vdisk and logging library to demonstrate how to upload log files to vdisk. 1. Create a new project named:mangoUploadLog, add essential libs to it 2.Edit App.xaml.cs, add some log in it. We log the lifecycle of the app// Code to execute when the application is launching (eg, from Start) // This code will not execute when the application is reactivated private void Application_Launching(object sender, LaunchingEventArgs e)
{
相关新闻>>
- 发表评论
-
- 最新评论 更多>>
您可能感兴趣的文章
- Windows Phone 实用开发技巧(2):使用TombstoneHelp
- Windows Phone 实用开发技巧(23):强制关闭SIP
- Windows Phone 实用开发技巧(11):让StackPanel中的
- 白话算法(7) 生成全排列的几种思路(三) 临位对换法
- Windows Phone 7 开发之Microsoft.Phone.Tasks中
- Windows Phone 7 最新的开发工具库
- 小试Sketchflow for Windows Phone 7
- Windows Phone 7 开发探索笔记5——页面间导航
- Windows Phone实用开发技巧(1):保存图片及加载图片
- Pocket PC获取路径的六种方法