Dec 8, 2010

Write Windows Event Log using Command Line

Last week I’ve created this small application using VS 2010, targeted to Microsoft.NET Framework 3.5. It’s a small application with simple code, but it’s very useful to Log your message to Windows Event Log in a DOS Batch file environment.

Click to download EventLogger.exe

It’s very simple to use. See the example below.

image 
To create an event log entry with “Error” flag.

image
To create an event log entry with “Warning” flag.

image 
To create an event log entry with “Information” flag.