Add Timestamp to Trace.WriteLine()

前端 未结 6 938
甜味超标
甜味超标 2021-01-03 20:37

In my C# .NET application I have an issue with the Trace.WriteLine()-method. I uses this method alot, and want to add a TimeStamp every time I use it.

Instead of Tra

6条回答
  •  孤街浪徒
    2021-01-03 21:28

    We use log4net TraceAppender where you can config layout or filtering easily.

提交回复
热议问题