log4net

log4net is a tool to help the programmer output log statements to a variety of output targets. In case of problems with an application, it is helpful to enable logging so that the problem can be located. With log4net it is possible to enable logging at runtime without modifying the application binary. The log4net package is designed so that log statements can remain in shipped code without incurring a high performance cost. It follows that the speed of logging (or rather not logging) is crucial.

3.6.0Latest, 12 Nov 2026
454MDownloads, all time
0Advisories on the latest
3Advisories, all versions
Apache-2.0Licence
937Stars
5.5/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
Moderate Apache Log4net: Silent log event loss in XmlLayout and XmlLayoutSchemaLog4J due to unescaped XML 1.0 forbidden characters CVE-2026-40021 Fixed in 3.3.0 10 Apr 2026
Moderate Apache log4net format string vulnerability causes DoS CVE-2006-0743 Fixed in 1.2.10 1 May 2022
Critical XML External Entity attack in log4net CVE-2018-1285 Fixed in 2.0.10 29 Jan 2021

In the news

Sources: NuGet, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.