fix(backend): use serilog theme that actually works with a light terminal

This commit is contained in:
sam 2024-11-24 16:01:40 +01:00
parent 0d47f1fb01
commit 0c78cd25b0
Signed by: sam
GPG key ID: B4EF20DDE721CAA1

View file

@ -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)
{