Trace vs Debug in .NET BCL

后端 未结 7 1305
余生分开走
余生分开走 2020-12-02 11:58

It seems that the

  • System.Diagnostics.Debug, and
  • System.Diagnostics.Trace

are largely the same, with the notable exception that

7条回答
  •  甜味超标
    2020-12-02 12:37

    I'd look at using log4net for tracing as its capabilities are much more flexible and robust.

    But for true debug messages that I never intend for anyone other than me or an internal tester to see, I'd probably stick with Debug.

提交回复
热议问题