Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
718 B

1 year ago
using Microsoft.Extensions.Logging;
namespace StabilityMatrix.Avalonia.Diagnostics.LogViewer.Core.Logging;
public class LogModel
{
#region Properties
public DateTime Timestamp { get; set; }
public LogLevel LogLevel { get; set; }
public EventId EventId { get; set; }
public object? State { get; set; }
1 year ago
1 year ago
public string? LoggerName { get; set; }
1 year ago
1 year ago
public string? CallerClassName { get; set; }
1 year ago
1 year ago
public string? CallerMemberName { get; set; }
public string? Exception { get; set; }
public LogEntryColor? Color { get; set; }
#endregion
1 year ago
public string LoggerDisplayName =>
LoggerName?.Split('.', StringSplitOptions.RemoveEmptyEntries).LastOrDefault() ?? "";
1 year ago
}