Hello NG,
I found a question on http://www.techietwo.com/detail-6075115.html and
still miss the answer. Does anyone have a workaroud for this problem?
-- schnipp ---------------------------------------------------------------
I'm trying to use a custom EventLog log with a Windows Service, but it
appears that the ServiceInstaller class ALWAYS creates a source of
|service_name| in the Application log, so that I cannot use |service_name|
in my custom log (because a source can only be associated with one log). I
have yet to find any way to get ServiceInstaller (or InstallUtil.exe) to
suppress this default log behavior. I HAVE set AutoLog to false in the
constructor for my ServiceBase derived class. I'm also using
EventLogInstaller to specify my custom log and log source names.
Somewhat related, when "forced" by the above behavior to specify a different
EventLog source name in my EventLogInstaller class, I later find in my
service that ServiceBase.EventLog, is still for Application.|source_name|
rather than MyLog.MySource, even though EventLogInstaller specifies the
latter.
-- schnapp ---------------------------------------------------------------
--
Kind regards, Michael Buechel
while(!sleep())
sheeps++;