在事件查看器中为Metro应用记录事件 [英] log event in Event viewer for metro apps

查看:112
本文介绍了在事件查看器中为Metro应用记录事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

对于我的Metro应用,我想在事件查看器中记录一个事件.就像在按钮单击事件中,我想引发一个错误,并且必须在事件查看器中记录此错误.由于"eventlog"类在Windows 8中不可用,我该怎么办?



For my metro app, I want to log an event in event viewer. It is like in the button click event I want to throw an error and this error has to be logged in event viewer..As the "eventlog" class is not available in windows 8.., how should I do it?? can I get the code for that.

推荐答案

基于以下内容,它仍然存在于Windows 8中.在这里,请看:MSDN:EventLog类 [ http://www.computerperformance.co.uk/win8/windows8-system-event-log.htm [ ^ ]
Well, based on the following, it still exists in Windows 8. Here, look: MSDN: EventLog Class[^]

Event Viewer too exists in Windows 8: http://www.computerperformance.co.uk/win8/windows8-system-event-log.htm[^]


这篇关于在事件查看器中为Metro应用记录事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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