/******************************** * * 作者:吴隆健 * 创建时间: 2019-06-09 10:45:09 * ********************************/ using System; namespace MrWu.Debug { /// /// 日志配置 /// public class LogConfig { /// /// 日志缓存数量 /// public int logCacheCount = 1000; /// /// 信息缓存数量 /// public int InfoCacheCount = 800; /// /// 警告缓存数量 /// public int warningCacheCount = 500; /// /// 重要日志 /// public int ImportantLogCacheCount = 300; /// /// 错误缓存数量 /// public int errorCacheCount = 100; /// /// 致命错误 /// public int FatalCacheCount = 1000; ///// ///// 日志路径 ///// //public string logpath { get; set; } #if DEBUG /// /// 日志等级 /// public DebugLevel logLevel = DebugLevel.Info | DebugLevel.Warning | DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal; #else /// /// 日志等级 /// public DebugLevel logLevel = DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal; #endif /// /// 保存日志等级 /// public DebugLevel saveLevel = DebugLevel.Info | DebugLevel.Warning | DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal; /// /// 构造器 /// public LogConfig() { } /// /// 保留天数 /// public int remainDays { get; set; } = 30; } }