renamed control to action to reflect its purpose and be more consistent with asp.net conventions
This commit is contained in:
32
Oqtane.Server/Logging/LogEntry.cs
Normal file
32
Oqtane.Server/Logging/LogEntry.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Oqtane.Models;
|
||||
using Oqtane.Repository;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Oqtane.Logging
|
||||
{
|
||||
public class LogEntry
|
||||
{
|
||||
public LogEntry()
|
||||
{
|
||||
TimeStampUtc = DateTime.UtcNow;
|
||||
UserName = Environment.UserName;
|
||||
}
|
||||
|
||||
static public readonly string StaticHostName = System.Net.Dns.GetHostName();
|
||||
|
||||
public string UserName { get; private set; }
|
||||
public string HostName { get { return StaticHostName; } }
|
||||
public DateTime TimeStampUtc { get; private set; }
|
||||
public string Category { get; set; }
|
||||
public LogLevel Level { get; set; }
|
||||
public string Text { get; set; }
|
||||
public Exception Exception { get; set; }
|
||||
public EventId EventId { get; set; }
|
||||
public object State { get; set; }
|
||||
public string StateText { get; set; }
|
||||
public Dictionary<string, object> StateProperties { get; set; }
|
||||
public List<LogScope> Scopes { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user