Problem with custom event log

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top