Microsoft.Extensions.Logging.Log4Net.AspNetCore 2.2.0
Allows to configure Log4net as Microsoft Extensions Logging handler on any ASP.NET Core application.
Original code proposal by @anuraj --> https://dotnetthoughts.net/how-to-use-log4net-with-aspnetcore-for-logging/
No packages depend on Microsoft.Extensions.Logging.Log4Net.AspNetCore.
Fixed bugs: - #24 - Support for configuration watching Now, you are able to configure Log4Net to be on watch mode over the log4net.config file. - #25 - Allow to create logger with type name The library now allows you to create a named logger within CreateLogger>T<, that automatically takes your type FullName and configures the logger with that name. - #28 - Configure log4net outside the log4net.config @kastwey implemented a way, using XPath routes, to be able to configure the log4net.config file through appsettings or environment variables in .NET Core. - #32 - The AddLog4Net() method does not take log4net.config filename automatically Fixed bug.
Special thanks to Toni Wenzel (@kastwey) by its contributions
.NET Core 1.1
- Microsoft.Extensions.Configuration (>= 1.1.2)
- Microsoft.Extensions.Configuration.Binder (>= 1.1.2)
- Microsoft.Extensions.Logging (>= 1.1.2)
- Microsoft.NETCore.App (>= 1.1.2)
- System.Xml.XPath.XDocument (>= 4.3.0)
- log4net (>= 2.0.8)
.NET Framework 4.6.2
- Microsoft.Extensions.Configuration (>= 2.1.1)
- Microsoft.Extensions.Logging (>= 2.1.1)
- System.Xml.XPath.XDocument (>= 4.3.0)
- log4net (>= 2.0.8)
.NET Core 2.0
- Microsoft.Extensions.Configuration (>= 2.1.1)
- Microsoft.Extensions.Logging (>= 2.1.1)
- System.Xml.XPath.XDocument (>= 4.3.0)
- log4net (>= 2.0.8)
.NET Standard 2.0
- Microsoft.Extensions.Configuration (>= 2.1.1)
- Microsoft.Extensions.Logging (>= 2.1.1)
- System.Xml.XPath.XDocument (>= 4.3.0)
- log4net (>= 2.0.8)
| Version | Downloads | Last updated |
|---|---|---|
| 8.0.0 | 4 | 12/14/2025 |
| 7.0.0 | 4 | 12/14/2025 |
| 6.1.0 | 2 | 12/14/2025 |
| 6.0.0 | 3 | 12/14/2025 |
| 5.0.4 | 3 | 12/14/2025 |
| 5.0.3 | 4 | 12/14/2025 |
| 5.0.1 | 2 | 12/14/2025 |
| 5.0.0 | 3 | 12/14/2025 |
| 3.1.5 | 4 | 12/14/2025 |
| 3.1.3 | 2 | 12/14/2025 |
| 3.1.0 | 3 | 12/14/2025 |
| 3.0.3 | 3 | 12/14/2025 |
| 3.0.0 | 3 | 12/14/2025 |
| 2.2.12 | 2 | 12/14/2025 |
| 2.2.11 | 3 | 12/14/2025 |
| 2.2.10 | 3 | 12/14/2025 |
| 2.2.9 | 2 | 12/20/2025 |
| 2.2.8 | 1 | 12/14/2025 |
| 2.2.6 | 2 | 12/14/2025 |
| 2.2.5 | 1 | 12/14/2025 |
| 2.2.4 | 4 | 12/14/2025 |
| 2.2.3 | 1 | 12/20/2025 |
| 2.2.1 | 3 | 12/14/2025 |
| 2.2.0 | 3 | 12/14/2025 |
| 2.1.0 | 5 | 12/15/2025 |
| 2.0.3 | 2 | 12/14/2025 |
| 2.0.2 | 1 | 12/20/2025 |
| 2.0.1 | 2 | 12/20/2025 |
| 2.0.0 | 2 | 12/14/2025 |
| 1.1.0 | 5 | 12/13/2025 |
| 1.0.1 | 2 | 12/20/2025 |
| 1.0.0 | 4 | 12/14/2025 |