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.
33 lines
1.1 KiB
33 lines
1.1 KiB
using System.Drawing; |
|
using Microsoft.Extensions.Logging; |
|
|
|
namespace StabilityMatrix.Avalonia.Diagnostics.LogViewer.Core.Logging; |
|
|
|
public class DataStoreLoggerConfiguration |
|
{ |
|
#region Properties |
|
|
|
public EventId EventId { get; set; } |
|
|
|
public Dictionary<LogLevel, LogEntryColor> Colors { get; } = |
|
new() |
|
{ |
|
[LogLevel.Trace] = new LogEntryColor { Foreground = Color.DarkGray }, |
|
[LogLevel.Debug] = new LogEntryColor { Foreground = Color.Gray }, |
|
[LogLevel.Information] = new LogEntryColor { Foreground = Color.WhiteSmoke, }, |
|
[LogLevel.Warning] = new LogEntryColor { Foreground = Color.Orange }, |
|
[LogLevel.Error] = new LogEntryColor |
|
{ |
|
Foreground = Color.White, |
|
Background = Color.OrangeRed |
|
}, |
|
[LogLevel.Critical] = new LogEntryColor |
|
{ |
|
Foreground = Color.White, |
|
Background = Color.Red |
|
}, |
|
[LogLevel.None] = new LogEntryColor { Foreground = Color.Magenta } |
|
}; |
|
|
|
#endregion |
|
}
|
|
|