SysLogEx.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. namespace Admin.NET.Core;
  2. /// <summary>
  3. /// 系统异常日志表
  4. /// </summary>
  5. [SugarTable("sys_log_ex", "系统异常日志表")]
  6. [SqlSugarEntity]
  7. public class SysLogEx : EntityBase
  8. {
  9. /// <summary>
  10. /// 类名
  11. /// </summary>
  12. [SugarColumn(ColumnDescription = "类名", Length = 100)]
  13. [MaxLength(100)]
  14. public string ClassName { get; set; }
  15. /// <summary>
  16. /// 方法名
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "方法名", Length = 100)]
  19. [MaxLength(100)]
  20. public string MethodName { get; set; }
  21. /// <summary>
  22. /// 异常名称
  23. /// </summary>
  24. [SugarColumn(ColumnDescription = "异常名称", ColumnDataType = "text")]
  25. public string ExceptionName { get; set; }
  26. /// <summary>
  27. /// 异常信息
  28. /// </summary>
  29. [SugarColumn(ColumnDescription = "异常信息", ColumnDataType = "text")]
  30. public string ExceptionMsg { get; set; }
  31. /// <summary>
  32. /// 异常源
  33. /// </summary>
  34. [SugarColumn(ColumnDescription = "异常源", ColumnDataType = "text")]
  35. public string ExceptionSource { get; set; }
  36. /// <summary>
  37. /// 堆栈信息
  38. /// </summary>
  39. [SugarColumn(ColumnDescription = "堆栈信息", ColumnDataType = "text")]
  40. public string StackTrace { get; set; }
  41. /// <summary>
  42. /// 参数对象
  43. /// </summary>
  44. [SugarColumn(ColumnDescription = "参数对象", ColumnDataType = "text")]
  45. public string ParamsObj { get; set; }
  46. /// <summary>
  47. /// 账号名称
  48. /// </summary>
  49. [SugarColumn(ColumnDescription = "账号名称", Length = 20)]
  50. [MaxLength(20)]
  51. public string UserName { get; set; }
  52. /// <summary>
  53. /// 真实姓名
  54. /// </summary>
  55. [SugarColumn(ColumnDescription = "真实姓名", Length = 20)]
  56. [MaxLength(20)]
  57. public string RealName { get; set; }
  58. }