structured logging

This commit is contained in:
Shaun Walker
2019-10-22 11:57:28 -04:00
parent ce25967633
commit 2e3a4efb74
79 changed files with 891 additions and 497 deletions

View File

@ -0,0 +1,12 @@
namespace Oqtane.Shared
{
public enum LogLevel
{
Trace,
Debug,
Information,
Warning,
Error,
Critical
}
}

View File

@ -1,4 +1,4 @@
namespace Oqtane.Modules
namespace Oqtane.Shared
{
public enum SecurityAccessLevel
{

View File

@ -0,0 +1,23 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
{
public class Log
{
public int LogId { get; set; }
public int SiteId { get; set; }
public DateTime LogDate { get; set; }
public int? PageId { get; set; }
public int? ModuleId { get; set; }
public int? UserId { get; set; }
public string Url { get; set; }
public string Server { get; set; }
public string Category { get; set; }
public string Level { get; set; }
public string Message { get; set; }
public string MessageTemplate { get; set; }
public string Exception { get; set; }
public string Properties { get; set; }
}
}

View File

@ -1,4 +1,5 @@
using Oqtane.Modules;
using Oqtane.Shared;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;