开发者

Is log4net dead?

I'm looking for a logging framework and it seems log4net is or was very popular. The last release was over 2 years ago. It has no开发者_如何学运维t been updated for .net 3.0 or 3.5 or even visual studio 2008. Is there something more recent (other then entlib) I should be considering?


Log4j (which was the basis for log4net) hasn't been updated in years. There are other alternatives from the same author (slf4j and logback) and others, but log4j is still used plenty and plenty viable. It isn't dead, it just got to the point where there was nothing more really was needed for it. Nothing that justified the work or wouldn't break backwards compatability. When that happens to a commercial project, the company has to invent a whole other purpose for the product or do something else and the product does indeed die. In open source, not really.

As a point of comparison, JUnit was basically going nowhere for years. Then Java got annotations, JUnit got competition (TestNG) and it is suddenly moving along again. Now the original developers may not end up being around in every case, but then the project would be forked or adapted. For example, TestNG allowed a smooth migration path from JUnit.

So the bottom line is if it is popular and used, it will not die on you.


log4net is a port of something originally written in java. The port is more or less complete.

Additionally, the port targeted the .Net 2.0 runtime and .Net 3.0 and .Net 3.5 are also built on top of that same runtime. Therefore you can load log4net into Visual Studio 2008 and use it in a .Net 3.5 project if you want to. So as I understand it there's no real need to make a new version specifically for .Net 3.5 or Visual Studio 2008 at the moment. Visual Studio 2010 may of course change that (new runtime).


The project seems to be alive again and version 1.2.11 was released:

http://stefan.samaflost.de/blog/en/Apache/Log4Net/working_on_the_1.2.11_release.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜