Problem with custom event log

  • Thread starter Thread starter Victor
  • Start date Start date
V

Victor

I am developing a windows service application that uses a custom
event. the problem is that the service installer associates the
service with application log during the installation process.
Therefore, the custom log does not recieve messages from the event
source.

Below is code snipet

' check if log exists on this machine
If Not EventLog.SourceExists("trkProcessMin") Then
EventLog.CreateEventSource("trkProcessMin", "Tracker")
End If

'create a log instance variable to manipulate the custom event
log
Me.trkMinLog.Log = "Tracker"
Me.trkMinLog.Source = "trkProcessMin"
 
Back
Top