using System.Collections.Generic;

namespace LogHelper
{
    /// <summary>
    /// 日志配置实体对象
    /// </summary>
    public class LogConfig
    {
        /// <summary>
        /// 路径
        /// </summary>
        public string LogPath { get; set; } = null!;

        /// <summary>
        /// 保留天数
        /// </summary>
        public int LogDays { get; set; }

        /// <summary>
        /// 日志
        /// </summary>
        public int LogSize { get; set; }

        /// <summary>
        /// 日志集合
        /// </summary>
        public List<LogConfigModel>? Logs { get; set; }
    }

    /// <summary>
    /// 日志配置项
    /// </summary>
    public class LogConfigModel
    {
        /// <summary>
        /// 配置名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string? FileName { get; set; }

        /// <summary>
        /// 日志子项类型
        /// </summary>
        public Dictionary<string, string>? SubLogNames { get; set; }
    }
}
