开发者

If Using Enterprise Library, Is log4net better to log with?

For a project we are using Enterprise Library 5, and will be using several of the blocks. I'm inclined to use the Logging application block since its built into this framework. But I do see a lot of recommendations for log4net, so what have people chosen to do and i开发者_如何转开发f choosing log4net, why did you choose it over some of the others?

Thanks.


Take a look at this question on SO: log4net vs. Nlog

The top voted answer looks especially pertinent, comparing EntLib, log4net, and NLog.

For what it's worth, I was evaluating log4net and NLog and chose to go with NLog; I just wanted something that would be easy to set up and would "just work", and so far NLog has been that.


I would probably go with Enterprise Library's logger, as I'd generally prefer one integrated library over using two separate libraries.

If you were only going to be using the logging block from EntLib, then I would probably choose log4net, but in this case, where you are going to be using EntLib anyway, the advantages of log4net over EntLib are minor enough as to not make them whilewhile to drag in another dependancy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜