Writing to the Event Log in C #

By: Justin Braun
Posted on: July 30, 2007

When I’m writing code, I don’t like to spend a lot of time fumbling around the framework.  Like tonight, I was looking for a simple way to write to the event log in Windows.  I went to Google and did a quick search and found the Microsoft knowledge base article entitled “How to write to an event log by using Visual C#“.

In less than 2 minutes I was able use this code to create a routine that allowed me to write to the event log.

Related Articles

Be More Fluid with the New Storage Center Command Set for PowerShell

Windows PowerShell was designed as a scripting language to help IT administrators automate repetitiv

Creating an Add-on for Internet Explorer with Add-In Express

Introduction For some time I have had a few ideas for Internet Explorer add-ons that I’d like to

My first attempt at developing a Windows Live Writer plugin

For the past few days I have been working with the Windows Live Writer SDK and trying to come up wit