Console.WriteLine() inside a Windows Service?

后端 未结 5 1839
广开言路
广开言路 2020-12-09 14:40

I am currently using TopShelf with a Console Application to create a Windows Service. When I run the code as a console application I use a few Console.WriteLine() to output

5条回答
  •  离开以前
    2020-12-09 15:19

    No, the console class will safely write to the STDOUT, but you will just not see the output.

提交回复
热议问题