How to capture console output from a service C#? -


we have c# service deployed remote customer system. application writes substantial amount of "diagnostic" information console (i.e. console.writeline()). service isn't "doing should." how can capture console output service in application?

a winform version application can loaded @ customer location. it, unfortunately, functions correctly.

update:

we able change change service, prefer not make major changes @ time.

we logging msmq, "important" events. service interact msmq normal operations. or, @ least, should. service doesn't seem pulling items msmq when winform version does. so, writing messages going console problematic.

are able change service code at all? if so, using console.setout write file instead obvious first port of call. change using proper logging library next release :)


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -