Microsoft.Extensions.Logging.Log4Net.AspNetCore 2.1.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/

There is a newer version of this package available.
See the version list below for details.
Install-Package Microsoft.Extensions.Logging.Log4Net.AspNetCore -Version 2.1.0
dotnet add package Microsoft.Extensions.Logging.Log4Net.AspNetCore --version 2.1.0
paket add Microsoft.Extensions.Logging.Log4Net.AspNetCore --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Fixed bugs:
- #15 - Invalid exception logging
Now, the exception formatter has been removed, and included the exception to be considered by Log4Net Exception pattern layout.
- #16 - ArgumentNullException when running with TestHost
@twenzel have implemented the required change to get the executing assembly from the startup class.
- #20 - Not compatible with new WebHostBuilder pattern
@twenzel have implemented the required change to adapt the logging extensions to the new recommended logging configuration by Microsoft (ref: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?tabs=aspnetcore2x#how-to-add-providers).

Special thanks to Toni Wenzel (@twenzel) by its contributions

Version History

Version Downloads Last updated
2.2.10 60,501 1/14/2019
2.2.9 3,887 1/7/2019
2.2.8 1,421 1/2/2019
2.2.6 63,330 10/22/2018
2.2.5 52,563 9/6/2018
2.2.4 53,879 7/11/2018
2.2.3 5,376 7/3/2018
2.2.1 7,687 6/26/2018
2.2.0 12,720 6/20/2018
2.1.0 45,926 4/17/2018
2.0.3 35,574 3/2/2018
2.0.2 2,217 2/27/2018
2.0.1 10,361 1/8/2018
2.0.0 1,004 1/2/2018
1.1.0 3,617 11/2/2017
1.0.1 2,461 9/21/2017
1.0.0 3,178 7/12/2017
Show less