I have created a Windows service program and I want my error to strictly be written to the Windows eventLog. So I followed these steps from code project article:
http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx
But I don't see any of the custom log messages I wrote in the event logs created in the event viewer window when I start or stop the service. Also how do I specify whether the message was due to an error or is just info?