SysLogEx.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
  2. //
  3. // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
  4. //
  5. // 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
  6. namespace Admin.NET.Core;
  7. /// <summary>
  8. /// 系统异常日志表
  9. /// </summary>
  10. [SugarTable(null, "系统异常日志表")]
  11. [SysTable]
  12. [LogTable]
  13. public partial class SysLogEx : SysLogVis
  14. {
  15. /// <summary>
  16. /// 请求方式
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "请求方式", Length = 32)]
  19. [MaxLength(32)]
  20. public string? HttpMethod { get; set; }
  21. /// <summary>
  22. /// 请求地址
  23. /// </summary>
  24. [SugarColumn(ColumnDescription = "请求地址", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  25. public string? RequestUrl { get; set; }
  26. /// <summary>
  27. /// 请求参数
  28. /// </summary>
  29. [SugarColumn(ColumnDescription = "请求参数", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  30. public string? RequestParam { get; set; }
  31. /// <summary>
  32. /// 返回结果
  33. /// </summary>
  34. [SugarColumn(ColumnDescription = "返回结果", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  35. public string? ReturnResult { get; set; }
  36. /// <summary>
  37. /// 事件Id
  38. /// </summary>
  39. [SugarColumn(ColumnDescription = "事件Id")]
  40. public int? EventId { get; set; }
  41. /// <summary>
  42. /// 线程Id
  43. /// </summary>
  44. [SugarColumn(ColumnDescription = "线程Id")]
  45. public int? ThreadId { get; set; }
  46. /// <summary>
  47. /// 请求跟踪Id
  48. /// </summary>
  49. [SugarColumn(ColumnDescription = "请求跟踪Id", Length = 128)]
  50. [MaxLength(128)]
  51. public string? TraceId { get; set; }
  52. /// <summary>
  53. /// 异常信息
  54. /// </summary>
  55. [SugarColumn(ColumnDescription = "异常信息", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  56. public string? Exception { get; set; }
  57. /// <summary>
  58. /// 日志消息Json
  59. /// </summary>
  60. [SugarColumn(ColumnDescription = "日志消息Json", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  61. public string? Message { get; set; }
  62. }