using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace X2D1NoRefTaskServer { public class LogInfo { public LogInfo() { this.LogTime = DateTime.Now; this.LogType = EnumLogType.Info; } [Display(Name = "日志类型")] public EnumLogType LogType { get; set; } [Display(Name = "时间")] public DateTime LogTime { get; private set; } [Display(Name = "内容")] public string Msg { get; set; } } public enum EnumLogType { [Display(Name = "消息")] Info, [Display(Name = "警告")] Warning, [Display(Name = "错误")] Error } }