NET 3.5的记录NET

2023-09-03 21:14:43 作者:崾赱の亽涐絕卟留

我是pretty的新的C#程序员。我想知道,如果有人可以填补我在如何使用日志框架到现有的解决方案(如果这就是你怎么称呼它)的更多信息。

I'm a pretty new C# programmer. I was wondering if someone can fill me in with more information on how to use a logging Framework into a already existing solution (if that's what you call it).

我试图让日志记录我的项目,我做的事情。我不知道有什么好和放大器;简单的框架,还有它们是如何被应该执行?我应该研究一个特定的主题?我还没有发现太大的教程或任何东西。因此,如果任何人有任何建议或想法,可以使我的正确途径。我真的AP preciate吧。

I am trying to get logging for my Project i am doing. I was wondering what good & easy frameworks there are and how are they supposed to be implemented? Should I research a specific topic? I haven't found much tutorials or anything. So if anyone has any suggestions or ideas that can lead me to the right way. I would really appreciate it.

也只是想知道。我使用.net 3.5由于log4net的使用。NET 2.0 ...是否有任何冲突的/它会慢下来或什么?

Also Just wondering. I am using .Net 3.5 Since Log4Net is using .Net 2.0... Is there any conflicting/ will it slow it down or anything?

推荐答案

我会建议 log4net的与通用日志。后者可以让你在任何log4net的或微软企业库日志实现。

I would recommend log4net together with Common Logging. The latter allows you to plug in either log4net or the Microsoft Enterprise Library logging implementations.