Files

25 lines
793 B
C#
Raw Permalink Normal View History

2026-04-04 13:30:13 +02:00
using System.Drawing;
using Microsoft.Extensions.Logging;
2026-04-05 10:13:12 +02:00
using Serilog.Sinks.LogView.Core.Logging;
2026-04-04 13:30:13 +02:00
namespace LogViewer.Core;
public class DataStoreLoggerConfiguration
{
#region Properties
public EventId EventId { get; set; }
public Dictionary<LogLevel, LogEntryColor> Colors { get; } = new()
{
[LogLevel.Trace] = new() { Foreground = Color.DarkGray },
[LogLevel.Debug] = new() { Foreground = Color.Gray },
[LogLevel.Information] = new(),
[LogLevel.Warning] = new() { Foreground = Color.Orange},
[LogLevel.Error] = new() { Foreground = Color.White, Background = Color.OrangeRed },
[LogLevel.Critical] = new() { Foreground=Color.White, Background = Color.Red },
[LogLevel.None] = new(),
};
#endregion
}