.net Diagnostics best practices?

前端 未结 4 1385
天命终不由人
天命终不由人 2021-01-30 11:43

We initially didn\'t use any logging or debug tracing but after spending few weeks to trace down some data corruption we decided to put required Debug.Write and Trace for produc

4条回答
  •  春和景丽
    2021-01-30 12:22

    System.Diagnostics also contains EventLog.WriteEntry, but you may or may not want to flood the EventLog with trace messages, though it is an easy way to get major app events logged.

提交回复
热议问题