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/

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.2.0
dotnet add package Microsoft.Extensions.Logging.Log4Net.AspNetCore --version 2.2.0
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Extensions.Logging.Log4Net.AspNetCore --version 2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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

Version History

Version Downloads Last updated
2.2.11 15,212 5/10/2019
2.2.10 126,364 1/14/2019
2.2.9 4,523 1/7/2019
2.2.8 1,628 1/2/2019
2.2.6 77,141 10/22/2018
2.2.5 61,348 9/6/2018
2.2.4 60,402 7/11/2018
2.2.3 5,935 7/3/2018
2.2.1 8,911 6/26/2018
2.2.0 14,396 6/20/2018
2.1.0 51,556 4/17/2018
2.0.3 46,001 3/2/2018
2.0.2 2,248 2/27/2018
2.0.1 10,980 1/8/2018
2.0.0 1,560 1/2/2018
1.1.0 5,776 11/2/2017
1.0.1 2,506 9/21/2017
1.0.0 3,251 7/12/2017
Show less