2022-09-08 08:04:32 -07:00

36 lines
947 B
C#

using Church.Net.Entity.Interface;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Church.Net.Entity
{
public class LogInfo : IEntity
{
public LogInfo()
{
}
public LogInfo(LogLevel level)
{
Id = Guid.NewGuid().ToString();
Time = DateTime.UtcNow;
Level = level;
}
public string Id { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int TrackNo { get; set; }
public string Url { get; set; }
public string Message { get; set; }
public string Source { get; set; }
public string StackTrace { get; set; }
public string DetailMessage { get; set; }
public string UserId { get; set; }
public DateTime Time { get; set; }
public LogLevel Level { get; set; }
}
}