Formatting trace output

前端 未结 7 1002
南笙
南笙 2020-12-29 09:14

I\'m using TextWriterTraceListener to log diagnostics messages to a text file. However I wan\'t also to log a timestamp of every trace message added. Is it poss

7条回答
  •  粉色の甜心
    2020-12-29 09:45

    Not really an answer to your question but have you considered just using log4Net?

    You can configure it to add times etc, along with a vast amount of other useful functionality.

提交回复
热议问题