# log4net (NuGet)

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.

- Latest: 3.6.0 (2026-11-12)
- Licence: Apache-2.0
- Downloads: 454208075 all time
- Advisories on the latest version: 0

- CVE-2026-40021 MODERATE: Apache Log4net: Silent log event loss in XmlLayout and XmlLayoutSchemaLog4J due to unescaped XML 1.0 forbidden characters Fixed in 3.3.0.
- CVE-2006-0743 MODERATE: Apache log4net format string vulnerability causes DoS Fixed in 1.2.10.
- CVE-2018-1285 CRITICAL: XML External Entity attack in log4net Fixed in 2.0.10.

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