Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

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.
Posted
Updated 5-Oct-12 0:10am
v3
Comments
Mohd. Mukhtar 5-Oct-12 1:42am    
Are you want to read event viewer log?
SUSHIL AURADKAR 5-Oct-12 2:45am    
for my metro style application I want to log an event in event viewer. EVENTLOG Class in not available in windows 8..so how to proceed?

1 solution

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[^]
 
Share this answer
 
Comments
SUSHIL AURADKAR 5-Oct-12 3:51am    
Hi Sandeep please refer this link..
http://social.msdn.microsoft.com/Forums/en-US/winappswithhtml5/thread/73c7fb3a-2183-4d60-b2b1-ff4aa9286700
SUSHIL AURADKAR 5-Oct-12 5:12am    
Hi,,

Event viewer exists in Windows 8. But the question is I have an metro app,, where in under button click I want to throw an error and this error has to logged in event viewer... for this I should have "eventlog" class, which is not available in windows 8.
SUSHIL AURADKAR 10-Oct-12 6:38am    
Please come up with solution..any1?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900