structured logging
This commit is contained in:
12
Oqtane.Shared/Enums/LogLevel.cs
Normal file
12
Oqtane.Shared/Enums/LogLevel.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace Oqtane.Shared
|
||||
{
|
||||
public enum LogLevel
|
||||
{
|
||||
Trace,
|
||||
Debug,
|
||||
Information,
|
||||
Warning,
|
||||
Error,
|
||||
Critical
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
namespace Oqtane.Modules
|
||||
namespace Oqtane.Shared
|
||||
{
|
||||
public enum SecurityAccessLevel
|
||||
{
|
23
Oqtane.Shared/Models/Log.cs
Normal file
23
Oqtane.Shared/Models/Log.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
using Oqtane.Modules;
|
||||
using Oqtane.Shared;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
Reference in New Issue
Block a user