K
K Viltersten
I noticed that then i execute the
following code everything works fine.
if (!EventLog.SourceExists(source))
EventLog.CreateEventSource(source, LOG_NAME);
EventLog eventLog = new EventLog(LOG_NAME);
eventLog.Source = source;
eventLog.WriteEntry(message, type);
But, to my astonishment, when i specify
the source to be of the same name as the
service (not LOG_NAME, but the service's
name), i get no logging. What's up here?!
following code everything works fine.
if (!EventLog.SourceExists(source))
EventLog.CreateEventSource(source, LOG_NAME);
EventLog eventLog = new EventLog(LOG_NAME);
eventLog.Source = source;
eventLog.WriteEntry(message, type);
But, to my astonishment, when i specify
the source to be of the same name as the
service (not LOG_NAME, but the service's
name), i get no logging. What's up here?!