How to save the output of a console application

后端 未结 6 1128
有刺的猬
有刺的猬 2021-01-11 19:12

I need advice on how to have my C# console application display text to the user through the standard output while still being able access it later on. The actual feature I w

6条回答
  •  走了就别回头了
    2021-01-11 19:53

    The perfect solution for this is to use log4net with a console appender and a file appender. There are many other appenders available as well. It also allows you to turn the different appenders off and on at runtime.

提交回复
热议问题