Microsoft.Extensions.Logging.Log4Net.AspNetCore
5.0.1
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/
Install-Package Microsoft.Extensions.Logging.Log4Net.AspNetCore -Version 5.0.1
dotnet add package Microsoft.Extensions.Logging.Log4Net.AspNetCore --version 5.0.1
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="5.0.1" />
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 5.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Microsoft.Extensions.Logging.Log4Net.AspNetCore, 5.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.Extensions.Logging.Log4Net.AspNetCore as a Cake Addin
#addin nuget:?package=Microsoft.Extensions.Logging.Log4Net.AspNetCore&version=5.0.1
// Install Microsoft.Extensions.Logging.Log4Net.AspNetCore as a Cake Tool
#tool nuget:?package=Microsoft.Extensions.Logging.Log4Net.AspNetCore&version=5.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Release Notes
#97 - Log4net in asp.net core gives wrong logging output for class' method name
Dependencies
-
.NETCoreApp 1.1
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 1.1.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 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)
-
.NETCoreApp 2.0
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 2.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.0.2)
- Microsoft.Extensions.Configuration.Binder (>= 2.0.2)
- Microsoft.Extensions.Logging (>= 2.0.2)
- System.Xml.XPath.XDocument (>= 4.3.0)
-
.NETCoreApp 2.1
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 2.1.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.1.1)
- Microsoft.Extensions.Configuration.Binder (>= 2.1.10)
- Microsoft.Extensions.Logging (>= 2.1.1)
- System.Xml.XPath.XDocument (>= 4.3.0)
-
.NETCoreApp 2.2
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Binder (>= 2.2.4)
- Microsoft.Extensions.Logging (>= 2.2.0)
- System.Xml.XPath.XDocument (>= 4.3.0)
-
.NETCoreApp 3.0
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 3.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 3.0.0)
- Microsoft.Extensions.Logging (>= 3.0.0)
- System.Xml.XPath.XDocument (>= 4.3.0)
-
.NETCoreApp 3.1
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 3.1.13)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.13)
- Microsoft.Extensions.Configuration.Binder (>= 3.1.13)
- Microsoft.Extensions.Logging (>= 3.1.13)
- System.Xml.XPath.XDocument (>= 4.3.0)
-
.NETStandard 2.0
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Binder (>= 2.2.4)
- Microsoft.Extensions.Logging (>= 2.2.0)
- System.Xml.XPath.XDocument (>= 4.3.0)
-
.NETStandard 2.1
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 3.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 3.0.0)
- Microsoft.Extensions.Logging (>= 3.0.0)
- System.Xml.XPath.XDocument (>= 4.3.0)
-
net5.0
- log4net (>= 2.0.12)
- Microsoft.Extensions.Configuration (>= 5.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 5.0.0)
- Microsoft.Extensions.Logging (>= 5.0.0)
- System.Xml.XPath.XDocument (>= 4.3.0)
Used By
NuGet packages (48)
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Logging.Log4Net.AspNetCore:
Package | Downloads |
---|---|
NanoCore
The project is inspired by years of tedious repetitions, continuously re-writing similar code-snippets and libraries, to handle common functionality, not related to the business domain, such as logging, data persistence, message queuing, documentation, validation and similar.
|
|
Log4ALA
Log4Net appender for Azure Log Analytics (ALA)... sending data to Azure Log Analytics with the HTTP Data Collector API. The data will also be logged/sent asynchronously for high performance and to avoid blocking the caller thread.
|
|
Zny.ApiCore
WebApi基类
|
|
Zny.Aop
Aop相关
|
|
Dywham.Commons.Messaging.NServiceBus
Package Description
|
GitHub repositories (8)
Showing the top 5 popular GitHub repositories that depend on Microsoft.Extensions.Logging.Log4Net.AspNetCore:
Repository | Stars |
---|---|
anjoy8/Blog.Core
💖 ASP.NET Core 3.1/5.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档
|
|
lampo1024/DncZeus
DncZeus 是一个基于ASP.NET Core 3 + Vue.js(iview-admin) 的前后端分离的通用后台权限(页面访问、操作按钮控制)管理系统框架。后端使用.NET Core 3 + Entity Framework Core构建,UI则是目前流行的基于Vue.js的iView(iview-admin)。项目实现了前后端的动态权限管理和控制以及基于JWT的用户令牌认证机制,让前后端的交互更流畅。码云镜像:https://gitee.com/rector/DncZeus 。演示地址(demo):
|
|
AElfProject/AElf
A scalable cloud computing blockchain platform
|
|
migomiddle/xms
基于.netcore的跨平台应用框架,包含众多常用模块,易上手、易扩展,xms可理解为x(可扩展的/任意的)m(管理)s(系统)
|
|
MUnique/OpenMU
This project aims to create an easy to use, extendable and customizable server for a MMORPG called "MU Online".
|
Version History
Version | Downloads | Last updated |
---|---|---|
5.0.1 | 11,630 | 3/23/2021 |
5.0.0 | 179,311 | 11/15/2020 |
3.1.5 | 135,226 | 10/20/2020 |
3.1.3 | 92,868 | 9/21/2020 |
3.1.0 | 974,447 | 2/26/2020 |
3.0.3 | 561,902 | 11/12/2019 |
3.0.0 | 130,334 | 9/26/2019 |
2.2.12 | 217,121 | 8/21/2019 |
2.2.11 | 365,778 | 5/10/2019 |
2.2.10 | 525,979 | 1/14/2019 |
2.2.9 | 14,228 | 1/7/2019 |
2.2.8 | 5,529 | 1/2/2019 |
2.2.6 | 196,667 | 10/22/2018 |
2.2.5 | 126,621 | 9/6/2018 |
2.2.4 | 120,841 | 7/11/2018 |
2.2.3 | 47,662 | 7/3/2018 |
2.2.1 | 19,215 | 6/26/2018 |
2.2.0 | 69,547 | 6/20/2018 |
2.1.0 | 251,804 | 4/17/2018 |
2.0.3 | 217,028 | 3/2/2018 |
2.0.2 | 2,903 | 2/27/2018 |
2.0.1 | 13,068 | 1/8/2018 |
2.0.0 | 12,187 | 1/2/2018 |
1.1.0 | 11,612 | 11/2/2017 |
1.0.1 | 3,615 | 9/21/2017 |
1.0.0 | 4,422 | 7/12/2017 |