mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 17:11:44 +08:00
- 恢复 EasyEvents、CollectionExtensions 与 logging 配置模型的公共 API 兼容形状 - 修复 ContextAwareGenerator 字段命名冲突、锁内读取路径与相关快照回归测试 - 更新 Cqrs 与 schema generator 的 null/cancellation 契约,并同步 ai-plan 跟踪与验证记录
30 lines
930 B
C#
30 lines
930 B
C#
using GFramework.Core.Abstractions.Logging;
|
|
|
|
namespace GFramework.Core.Logging;
|
|
|
|
/// <summary>
|
|
/// 日志配置类
|
|
/// </summary>
|
|
public sealed class LoggingConfiguration
|
|
{
|
|
/// <summary>
|
|
/// 全局最小日志级别
|
|
/// </summary>
|
|
public LogLevel MinLevel { get; set; } = LogLevel.Info;
|
|
|
|
/// <summary>
|
|
/// Appender 配置列表
|
|
/// </summary>
|
|
#pragma warning disable MA0016 // Preserve the established concrete configuration API surface.
|
|
public List<AppenderConfiguration> Appenders { get; set; } = new();
|
|
#pragma warning restore MA0016
|
|
|
|
/// <summary>
|
|
/// 特定 Logger 的日志级别配置
|
|
/// </summary>
|
|
#pragma warning disable MA0016 // Preserve the established concrete configuration API surface.
|
|
public Dictionary<string, LogLevel> LoggerLevels { get; set; } =
|
|
new Dictionary<string, LogLevel>(StringComparer.Ordinal);
|
|
#pragma warning restore MA0016
|
|
}
|