How to capture console output from a service C#?

后端 未结 7 1595
无人及你
无人及你 2021-02-07 06:12

We have a C# service that is deployed to a remote customer system. The application writes a substantial amount of \"diagnostic\" information to the console (i.e. Console.WriteL

7条回答
  •  一个人的身影
    2021-02-07 06:47

    I found this post on MSDN which binds the Console output to a rich text box, worked for me very quickly and easily.

    It overrides WriteLine, and could be expanded to override other methods.

提交回复
热议问题