What is the best way that anyone has found to capture errors inside a
windows service? It's pointless to use compilation constants, as you can't
"debug" a service very easily, and you can't pass in a command line
arguement (can you?) to tell it to do something special like capture errors
to a file while it's running. Has anyone figured out any good ways to do
this type of run-time error capturing?
Basically, if I were building a standard windows app, I'd just program it so
when certain command line arguements are passed in, the compiled code would
know to output information to a file. This saves me time from having to be
on-site and step through the code line by line. Can you do something like
that with a windows service?
windows service? It's pointless to use compilation constants, as you can't
"debug" a service very easily, and you can't pass in a command line
arguement (can you?) to tell it to do something special like capture errors
to a file while it's running. Has anyone figured out any good ways to do
this type of run-time error capturing?
Basically, if I were building a standard windows app, I'd just program it so
when certain command line arguements are passed in, the compiled code would
know to output information to a file. This saves me time from having to be
on-site and step through the code line by line. Can you do something like
that with a windows service?
Comment