I'm writing a Windows Service. When it starts running, "Service started successfully." is written to the Event Log, w/ a Source of "Service1". Cool -- this happens by default.
I'd rather a different service name show up in the event log. But if I add this statement this.ServiceNam e = "MyService" ; then nothing gets written to the event log when the service starts or stops. Ho do I change that message?
Thanks!
I'd rather a different service name show up in the event log. But if I add this statement this.ServiceNam e = "MyService" ; then nothing gets written to the event log when the service starts or stops. Ho do I change that message?
Thanks!
Comment