Forum Discussion

visalakshi_sesh's avatar
visalakshi_sesh
Occasional Contributor
13 years ago

Fetch the details of Windows Event Viewer

Hi All,


I need to check the details of windows event viewer - Application log, whether any error or warning has generated at the end of each test case execution.


I have imported System.dll in CLR Bridge to import all the namespace from .net System.Diagnostics


I have tried using dotNet.System_Diagnostics.EventLog, dotNet.System_Diagnostics_Eventing, dotNet.Sytem_Diagnistics_Eventing_Reader to fetch the details of event viewer.




But only the methods of namespace alone displayed, where as the properties are not displaying. Kindly suggest what should i do to display the properties of namespace.


Kindly let me know is there any other way to achieve this problem without opening the event viewer.