System.Diagnostics.Debug namespace vs Other logging solutions (log4net, MS Enterprise Library, etc.)

后端 未结 4 2093
轮回少年
轮回少年 2021-02-05 09:56

I\'m currently investigating various logging possibilities for .net projects and I can\'t decide between System.Diagnostics.Debug/Trace features and third party libraries like l

4条回答
  •  我在风中等你
    2021-02-05 10:09

    From a developer point of view concerns like logging, similar to orm, shouldn't be hand written. There are plenty of good solid third party libraries. Sure there is sometimes a bit of configuration work to be done but compare that to hand rolling you're own solutions it's a mere drop in the water.

    My personal preference is log4net but it depends on your needs. My best advice is have a look at the documentation of solutions such as log4net or EntLib Logging Application Block and make a decision about what is best for you.

提交回复
热议问题