G
Guest
I'd like to write a windows service in .net, in itself that's not a big deal,
but my problem comes from the fact that I'd quite like to have the ability to
have a console attached to the service. The reasoning behind it is that I’d
like to have the option of some user input, but if they do something stupid
(namely shutdown the service) it will restart itself and continue, plus it
would be useful to have some screen logging, just the sort of stuff that is
more than I want in the event log (start stop, error) but not the sort of
level of detail that will be in the file logs, which is too much for the
average service engineer to trawl through.
I thought I read somewhere that there was a property along the lines of
HasConsole, but I can’t find it, it what I’m trying possible of do I need to
write a trace listener to listen for information from the service?
Thanks for any help.
Rob
but my problem comes from the fact that I'd quite like to have the ability to
have a console attached to the service. The reasoning behind it is that I’d
like to have the option of some user input, but if they do something stupid
(namely shutdown the service) it will restart itself and continue, plus it
would be useful to have some screen logging, just the sort of stuff that is
more than I want in the event log (start stop, error) but not the sort of
level of detail that will be in the file logs, which is too much for the
average service engineer to trawl through.
I thought I read somewhere that there was a property along the lines of
HasConsole, but I can’t find it, it what I’m trying possible of do I need to
write a trace listener to listen for information from the service?
Thanks for any help.
Rob