Friday, 16 November 2018

Event Log Reading Using C#.Net | How To Read Windows Event Logs C#.Net | C# Read Windows Event Log

11/16/2018 - By Pranav Singh 0


This article will show you how you can read the windows event log using c#.net. For reading event log of windows we need these two assemblies System.dll, System.Diagnostics.EventLog.dll.


So here is the code for reading the event log:

EventLog[] _eventLogs;
            _eventLogs = EventLog.GetEventLogs();
            foreach (EventLog data in _eventLogs)
            {
                Console.WriteLine("Log Name: " + data.Log);
            }

Here is the execution result.


Tags: ,
About the Author

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

Please let me know your view

Free Ebooks


About Us

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Contact Us

For writing article in this website please send request by your

GMAIL ID: dotnetpools@gmail.com

Bugs and Suggestions

As we all know that this website is for sharing knowledge and providing proper solution. So while reading the article is you find any bug or if you have any suggestion please mail us at contact@aspdotnet-pools.com.

Partners


Global Classified : Connectseekers.com
© 2014 aspdotnet-pools.com Designed by Bloggertheme9.
back to top