GFramework/GFramework.Core/Logging/LoggingConfiguration.cs
GeWuYou 97573be2e1 fix(core): 清零低风险分析器警告
- 更新 Core 配置与集合扩展的集合抽象契约

- 修复 CoroutineScheduler 字符串字典 comparer 与 EasyEvents 重复注册异常类型

- 补充 Option<T> 相等性接口并更新 analyzer recovery 记录
2026-04-23 09:49:21 +08:00

26 lines
708 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>
public IList<AppenderConfiguration> Appenders { get; set; } = new List<AppenderConfiguration>();
/// <summary>
/// 特定 Logger 的日志级别配置
/// </summary>
public IDictionary<string, LogLevel> LoggerLevels { get; set; } =
new Dictionary<string, LogLevel>(StringComparer.Ordinal);
}