Furion.Logging
5.0.0-preview.1.20230701.2
This is a prerelease version of Furion.Logging.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Furion.Logging --version 5.0.0-preview.1.20230701.2
NuGet\Install-Package Furion.Logging -Version 5.0.0-preview.1.20230701.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Furion.Logging" Version="5.0.0-preview.1.20230701.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Furion.Logging --version 5.0.0-preview.1.20230701.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Furion.Logging, 5.0.0-preview.1.20230701.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Furion.Logging as a Cake Addin #addin nuget:?package=Furion.Logging&version=5.0.0-preview.1.20230701.2&prerelease // Install Furion.Logging as a Cake Tool #tool nuget:?package=Furion.Logging&version=5.0.0-preview.1.20230701.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
先知
一个应用程序框架,您可以将它集成到任何 .NET/C# 应用程序中。
开发背景
当前的 Furion v4 版本已经变得成熟且稳定,但仍存在以下问题:
- 早期开发进展迅速,很多代码存在仓促上线的情况,缺乏充分思考和考虑
- 所有模块都包含在一个项目中,无法按需加载和安装
- 过度使用静态类和静态内存存储,不利于进行单元测试和数据隔离
- 对于 .NET Core 的掌握程度有限,导致历史代码臃肿且高度耦合
- 代码架构和设计模式缺乏统一性,可以说是一个大杂烩
- 在早期对用户需求掌握不足,导致后期不断打补丁来进行改进,稍有改动就可能引发破坏性的修改
- 模块、类型、属性、方法、属性等命名混乱,很难从字面上理解其功能含义
- 模块功能封装过度,配置参数繁杂
- 框架示例混乱,用户只能自行摸索最佳实践
- 虽有单元测试,但是非常混乱
框架技术
Furion v5 版本采用 C# 12 和 .NET 8 进行开发。
开发指导
- 实现完全无第三方依赖(除微软官方提供外)
- 实现彻底模块化,每个模块都是独立的项目
- 每个模块的单元测试覆盖率要达到 92%以上
- 确保每个类型、属性、字段、方法都有详细的注释
- 尽可能避免使用静态内存存储
- 所有模块都采用上下文和构建器模式进行设计
- 所有模块都采用依赖注入/控制反转的设计模式
- 所有模块都采用约定大于配置设计原则
- 尽可能为每个模块提供看板功能
- 提供所有模块最佳实践示例
模块状态
模块名称 | 状态 | 单元测试 | 版本 | 文档 |
---|---|---|---|---|
Furion.Core | ✅ | ✅ | ⚠️ | |
Furion.DependencyInjection | ✅ | ✅ | ⚠️ | |
Furion.DependencyInjection.Named | ✅ | ✅ | ⚠️ | |
Furion.Component | ✅ | ✅ | ⚠️ | |
Furion.Component.AspNetCore | ✅ | ✅ | ⚠️ | |
Furion.Component.Hosting | ✅ | ✅ | ⚠️ | |
Furion.Configuration | ✅ | ✅ | ⚠️ | |
Furion.Configuration.ManifestResource | ✅ | ✅ | ⚠️ | |
Furion.Validation | ⏳ | ⏳ | ⚠️ | |
Furion.Validation.AspNetCore | ⏳ | ⏳ | ⚠️ |
状态说明
图标 描述 ⚠️ 待定 ⏳ 进行中 ✅ 完成 💔 随时抛弃
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Furion.Component (>= 5.0.0-preview.1.20230701.2)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Furion.Logging:
Package | Downloads |
---|---|
Furion.Logging.AspNetCore
Furion 框架日志模块。 |
|
Furion.Logging.Console
Furion 框架控制台日志模块。 |
|
Furion.Logging.File
Furion 框架文件日志模块。 |
GitHub repositories
This package is not used by any popular GitHub repositories.