Install
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
Source · Homepage · Ask AI Mode · · Markdown
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
- Log4Net: Could not load file or assembly stackoverflow.com, 27 Feb 2025
- Logging with Log4Net in static class stackoverflow.com, 13 Feb 2025
- Log4Net not logging information in .net 8 stackoverflow.com, 12 Feb 2025
- Fixing C# dotnetcore3.1 log4net 2.0.8: Detected package downgrade error stackoverflow.com, 15 Nov 2024
- log4net:ERROR ConfigureFromXml called with null 'element' parameter for Postgres SQL stackoverflow.com, 18 Oct 2024
Sources: NuGet, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.