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

MSDN Nuggets

Don't have the time to read a 10-page how-to article or watch a full length webcast?
2018 12 19 17 24 28

My first look at Windows Sandbox

Earlier this week, Windows Insiders who were part of the Fast Ring, got their first glimpse of an isolated desktop environment called Windows Sandbox.

Compellent PSCS One-Liner Coding: Tip #2

With Compellent Storage Center 5, you have the ability to control whether an alert is generated for individual servers when connectivity changes.