log4net死了吗?

发布于 2024-08-09 06:23:11 字数 191 浏览 3 评论 0原文

我正在寻找一个日志框架,似乎 log4net 非常流行。上次发布已是 2 年前的事了。它尚未针对 .net 3.0 或 3.5 甚至 Visual Studio 2008 进行更新。是否有更新的内容(除 entlib 之外)我应该考虑?

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 not 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

荭秂 2024-08-16 06:23:11

Log4j(它是 log4net 的基础)已经很多年没有更新了。同一作者还有其他替代方案(slf4j 和 logback)等,但 log4j 仍然被大量使用且非常可行。它并没有死,只是到了不再需要任何东西的地步。没有什么可以证明这项工作的合理性或不会破坏向后兼容性。当商业项目发生这种情况时,公司必须为产品发明一个完全不同的用途或做其他事情,而产品确实会消亡。在开源中,事实并非如此。

相比之下,JUnit 多年来基本上没有任何进展。然后 Java 有了注释,JUnit 有了竞争(TestNG),它突然又向前发展了。现在,最初的开发人员可能不会在所有情况下都出现,但随后该项目将被分叉或调整。例如,TestNG 允许从 JUnit 平滑迁移。

所以最重要的是,如果它流行并被使用,它就不会死在你身上。

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.

一个人的旅程 2024-08-16 06:23:11

log4net 是最初用 java 编写的内容的端口。该端口或多或少已经完成。

此外,该移植针对 .Net 2.0 运行时,.Net 3.0 和 .Net 3.5 也构建在同一运行时之上。因此,您可以将 log4net 加载到 Visual Studio 2008 中,并在 .Net 3.5 项目中使用它(如果您愿意)。据我了解,目前没有必要专门为 .Net 3.5 或 Visual Studio 2008 创建新版本。 Visual Studio 2010 当然可能会改变这一点(新的运行时)。

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).

七月上 2024-08-16 06:23:11

该项目似乎再次活跃起来,并发布了 1.2.11 版本:

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文