Reputation: 7750
What logger library you use in .NET projects and the one you prefer? I used log4net for a while, but it's last version is 2007. What is your personal choice and your opinion if you had hands on several libraries? Is there a logger library that is production standard nowadays?
Thank you in advance!
Upvotes: 4
Views: 413
Reputation: 3963
Two that I know of are log4net. I've used this on numerous projects. The documentation is decent although I always have to read the docs to get a new project set up.
There is also NLog although I haven't used it.
Upvotes: 1
Reputation: 172646
I prefer my own CuttingEdge.Logging. I built it, because I was a bit annoyed with the complexity logging frameworks such as Log4net and Logging Application Block. CuttingEdge.Logging is easy to use, but sacrifices flexibility for this.
Upvotes: 1
Reputation: 2596
Logging Application Block from Microsoft Enterprise Library is not bad one.
List of advantages:
Upvotes: 4
Reputation: 46813
I personally can't stand log4net. If you use a log4j, then maybe it makes sense, but if you're starting from an uncorrupted mind, you're going to wonder why it's written the way it is.
I prefer The Object Guy's Dot Net Logger.
Upvotes: 3