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
Post a Comment