I am using the following code to create a custom event log in my windows service application:
public ServiceConstructor()
{
Try the following:
EventLog.CreateEventSource("WinService", "Application");
and
eventLog1.Log = "Application";
Also put the following in OnStart:
eventLog1.Log="Application"
eventLog1.Source = "WinService";
If the source already exists it looks like you don't initialize eventLog1.Source.
Suggest you move the initialization code to OnStart and out of the constructor.
And move these two lines out of the if statement:
eventLog1.Source = "WinService";
eventLog1.Log = "WinServiceLog";