T
tom.sikes
We wrote some code (utility stuff) that is intended to run as part of
either a windows service, a console app or a windows app. What I'd
like to do is when it is running as a service have it log exceptions
to the event log, when as a console app, write them to the Console,
and when running as a windows app. raise an event.
Anybody have any ideas other than setting some flag values in the
launching application. We can't do that because we don't control the
app that uses these utilities.
either a windows service, a console app or a windows app. What I'd
like to do is when it is running as a service have it log exceptions
to the event log, when as a console app, write them to the Console,
and when running as a windows app. raise an event.
Anybody have any ideas other than setting some flag values in the
launching application. We can't do that because we don't control the
app that uses these utilities.