Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > Source name in the Application Event log

Reply
Thread Tools

Source name in the Application Event log

 
 
pete
Guest
Posts: n/a
 
      03-31-2010
I'm really confused about how the Windows 7 (64bit Ultimate) determines the
Source name of messages in the application event log which originate from a
service I wrote.

My service can be instantiated with a switch or without a switch. This means
that if I register my service twice, once without and once with the switch
/I TEST, I end up with these entires in the registry (there are more of
course but these are the ones relevant to my problem):

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\servic es\APALSvc-POSTERA]
ImagePath="x:\devl\APALSvc\Release_POSTERA\APALSvc-POSTERA.exe"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\servic es\APALSvc-POSTERA-TEST]
ImagePath="x:\devl\APALSvc\Release_POSTERA\APALSvc-POSTERA.exe /I TEST"

(of course, Image path is a hex entry in the registry).

Now both services run fine and write messages to the application event log.
While messages from the switchless service show APALSvc-POSTERA as the
source name, messages from the second service above show TEST as the Source
name instead of APALSvc-POSTERA-TEST.

Why is that and can that be changed?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to a registered source in the Application event log with I =?Utf-8?B?SmVmZkRvdE5ldA==?= ASP .Net 6 08-01-2006 09:19 PM
ASP Problem: "IIS log failed to write entry" in Event Log cherryparadise001@gmail.com ASP General 0 05-26-2006 01:52 AM
My.Log.Writeexception not writing to Application Event Log. =?Utf-8?B?VG9tIFdpbmdlcnQ=?= ASP .Net 0 01-20-2006 06:41 PM
My.Log.WriteException not writing to Event Log with ASP.Net 2.0 Tom Wingert ASP .Net Web Services 0 01-12-2006 06:46 PM
Need help on the Permissions needed to log to Event Log from ASP.NET? Henrik_the_boss ASP .Net 0 11-05-2003 10:14 AM



Advertisments