24 lines
579 B
C#
24 lines
579 B
C#
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoDB.Entities;
|
|
|
|
namespace PrivaPub.Models.Data
|
|
{
|
|
[BsonIgnoreExtraElements]
|
|
public class PrivaPub : Entity
|
|
{
|
|
public DateTime Timestamp { get; set; }
|
|
public string Level { get; set; }
|
|
public string RenderedMessage { get; set; }
|
|
|
|
[BsonIgnoreIfDefault, BsonIgnoreIfNull]
|
|
public DbLogProperties Properties { get; set; }
|
|
[BsonIgnoreIfDefault, BsonIgnoreIfNull]
|
|
public string Exception { get; set; }
|
|
}
|
|
|
|
[BsonIgnoreExtraElements]
|
|
public class DbLogProperties
|
|
{
|
|
public string SourceContext { get; set; }
|
|
}
|
|
} |