mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 08:44:29 +08:00
- 更新 Core 配置与集合扩展的集合抽象契约 - 修复 CoroutineScheduler 字符串字典 comparer 与 EasyEvents 重复注册异常类型 - 补充 Option<T> 相等性接口并更新 analyzer recovery 记录
26 lines
708 B
C#
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);
|
|
}
|