2025-06-23 13:42:02 +08:00
|
|
|
using SqlSugar;
|
|
|
|
|
|
2025-07-18 22:21:16 +08:00
|
|
|
namespace DMS.Infrastructure.Entities;
|
2025-06-23 13:42:02 +08:00
|
|
|
|
2025-07-03 13:17:25 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 表示数据库中的NLog日志实体。
|
|
|
|
|
/// </summary>
|
2025-06-23 13:42:02 +08:00
|
|
|
[SugarTable("nlog")]
|
|
|
|
|
public class DbNlog
|
|
|
|
|
{
|
2025-07-03 13:17:25 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 日志调用位置。
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Callsite { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 日志调用行号。
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CallsiteLineNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 异常信息。
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
|
|
|
|
|
public string Exception { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 日志的唯一标识符。
|
|
|
|
|
/// </summary>
|
2025-06-23 17:01:06 +08:00
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)] //数据库是自增才配自增
|
2025-06-23 13:42:02 +08:00
|
|
|
public int Id { get; set; }
|
2025-06-23 17:01:06 +08:00
|
|
|
|
2025-07-03 13:17:25 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 日志级别。
|
|
|
|
|
/// </summary>
|
2025-06-23 13:42:02 +08:00
|
|
|
public string Level { get; set; }
|
2025-06-23 17:01:06 +08:00
|
|
|
|
2025-07-03 13:17:25 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 日志记录器名称。
|
|
|
|
|
/// </summary>
|
2025-06-23 13:42:02 +08:00
|
|
|
public string Logger { get; set; }
|
2025-07-03 13:17:25 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 日志时间。
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime LogTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 日志消息内容。
|
|
|
|
|
/// </summary>
|
2025-06-23 13:42:02 +08:00
|
|
|
public string Message { get; set; }
|
|
|
|
|
|
2025-07-03 13:17:25 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 线程ID。
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int ThreadID { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 线程名称。
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
public string ThreadName { get; set; }
|
2025-07-06 14:20:56 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 线程名称。
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
public string CallerFilePath { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 线程名称。
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
public int CallerLineNumber { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 线程名称。
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
public string CallerMember { get; set; }
|
2025-06-23 13:42:02 +08:00
|
|
|
}
|