From 0c78cd25b054685f9b72c7a0580ef0b8b7a5a5d8 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 24 Nov 2024 16:01:40 +0100 Subject: [PATCH] fix(backend): use serilog theme that actually works with a light terminal --- Foxnouns.Backend/Extensions/WebApplicationExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Foxnouns.Backend/Extensions/WebApplicationExtensions.cs b/Foxnouns.Backend/Extensions/WebApplicationExtensions.cs index c505f4d..da6f377 100644 --- a/Foxnouns.Backend/Extensions/WebApplicationExtensions.cs +++ b/Foxnouns.Backend/Extensions/WebApplicationExtensions.cs @@ -11,6 +11,7 @@ using NodaTime; using Prometheus; using Serilog; using Serilog.Events; +using Serilog.Sinks.SystemConsole.Themes; using FediverseAuthService = Foxnouns.Backend.Services.Auth.FediverseAuthService; using IClock = NodaTime.IClock; @@ -38,7 +39,7 @@ public static class WebApplicationExtensions .MinimumLevel.Override("Microsoft.AspNetCore.Hosting", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft.AspNetCore.Mvc", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft.AspNetCore.Routing", LogEventLevel.Warning) - .WriteTo.Console(); + .WriteTo.Console(theme: AnsiConsoleTheme.Sixteen); if (config.Logging.SeqLogUrl != null) {