/********************************
 *
 * 作者:吴隆健
 * 创建时间: 2019-06-09 10:45:09
 * 
 ********************************/

using System;

namespace MrWu.Debug {

    /// <summary>
    /// 日志配置
    /// </summary>
    public class LogConfig {
        /// <summary>
        /// 日志缓存数量
        /// </summary>
        public int logCacheCount = 1000;

        /// <summary>
        /// 信息缓存数量
        /// </summary>
        public int InfoCacheCount = 800;

        /// <summary>
        /// 警告缓存数量
        /// </summary>
        public int warningCacheCount = 500;

        /// <summary>
        /// 重要日志
        /// </summary>
        public int ImportantLogCacheCount = 300;

        /// <summary>
        /// 错误缓存数量
        /// </summary>
        public int errorCacheCount = 100;

        /// <summary>
        /// 致命错误
        /// </summary>
        public int FatalCacheCount = 1000;

        ///// <summary>
        ///// 日志路径
        ///// </summary>
        //public string logpath { get; set; }

#if DEBUG
        /// <summary>
        /// 日志等级
        /// </summary>
        public DebugLevel logLevel = DebugLevel.Info | DebugLevel.Warning | DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal;

#else
       /// <summary>
        /// 日志等级
        /// </summary>
        public DebugLevel logLevel =  DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal;
#endif

        /// <summary>
        /// 保存日志等级
        /// </summary>
        public DebugLevel saveLevel = DebugLevel.Info | DebugLevel.Warning | DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal;

        /// <summary>
        /// 构造器
        /// </summary>
        public LogConfig() {

        }

        /// <summary>
        /// 保留天数
        /// </summary>
        public int remainDays { get; set; } = 30;
    }
}
