Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is log4net dead?

Tags:

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?

like image 341
Chip Avatar asked Nov 02 '09 21:11

Chip


People also ask

Which is better Serilog or log4net?

Serilog has the concept of Sinks and log4net has appenders. They both cover the same need, just with different naming. Sinks and appenders are available for a lot of different destinations like files, databases, and remote services. As an example, elmah.io provides both a sink for Serilog and an appender for log4net.

Which is better NLog or log4net?

There is some small difference between NLog and log4net. NLog is easier to configure, and supports a much cleaner code-based configuration than log4net. I think the defaults in NLog are also more sensible than in log4net.

Does Serilog use log4j?

Formatting. Log4Net is an add-on for Serilog to format log events as log4net or log4j compatible XML format. You can use Log4View to look at log files produced with this formatter.


1 Answers

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.

like image 125
Yishai Avatar answered Dec 09 '22 14:12

Yishai