Error logging in C#

前端 未结 15 1880
一个人的身影
一个人的身影 2020-12-04 06:11

I am making my switch from coding in C++ to C#. I need to replace my C++ error logging/reporting macro system with something similar in C#.

In my C++ source I can w

15条回答
  •  失恋的感觉
    2020-12-04 06:24

    You can use built in .NET logging. Look into TraceSource and TraceListeners, they can be configured in the .config file.

提交回复
热议问题