Protected Overrides Sub OnStart(ByVal args() As String)When I start the service I see a new entry under...
If Not Diagnostics.Eve ntLog.SourceExi sts("MyService" ) Then
Diagnostics.Eve ntLog.CreateEve ntSource("MySer vice", "MyServiceL og")
End If
Dim _eventLog As New Diagnostics.Eve ntLog
_eventLog.Sourc e = "MyService"
_eventLog.Write Entry(CStr(Time OfDay) + " started", EventLogEntryTy pe.Information)
AddHandler m_listTimer.Ela psed, AddressOf myTimerElapsed
m_listTimer.Ena bled = True
End Sub
Computer Management(loca l)
System Tools
Event Viewer
Application
MyServiceLog <--- new entry
But the actual event I write gets logged with the Application events.
My question is, can I get the events that I write to go under
MyServiceLog? What am I doing wrong?
TIA,
--
Dennis