namespace GFramework.Core.Logging; /// /// Appender 配置。 /// public sealed class AppenderConfiguration { /// /// Appender 类型(Console, File, RollingFile, Async)。 /// public string Type { get; set; } = string.Empty; /// /// 格式化器类型(Default, Json)。 /// public string Formatter { get; set; } = "Default"; /// /// 文件路径(仅用于 File 和 RollingFile)。 /// public string? FilePath { get; set; } /// /// 是否使用颜色(仅用于 Console)。 /// public bool UseColors { get; set; } = true; /// /// 缓冲区大小(仅用于 Async)。 /// public int BufferSize { get; set; } = 10000; /// /// 最大文件大小(仅用于 RollingFile,字节)。 /// public long MaxFileSize { get; set; } = 10 * 1024 * 1024; /// /// 最大文件数量(仅用于 RollingFile)。 /// public int MaxFileCount { get; set; } = 5; /// /// 过滤器配置。 /// public FilterConfiguration? Filter { get; set; } /// /// 内部 Appender 配置(仅用于 Async)。 /// public AppenderConfiguration? InnerAppender { get; set; } }