diff --git a/Catalogger.Backend/Extensions/StartupExtensions.cs b/Catalogger.Backend/Extensions/StartupExtensions.cs index 3ac5200..3c1b772 100644 --- a/Catalogger.Backend/Extensions/StartupExtensions.cs +++ b/Catalogger.Backend/Extensions/StartupExtensions.cs @@ -18,6 +18,7 @@ using Remora.Discord.Interactivity.Services; using Remora.Rest.Core; using Serilog; using Serilog.Events; +using Serilog.Sinks.SystemConsole.Themes; namespace Catalogger.Backend.Extensions; @@ -39,7 +40,8 @@ public static class StartupExtensions .MinimumLevel.Override("Microsoft.AspNetCore.Hosting", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft.AspNetCore.Mvc", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft.AspNetCore.Routing", LogEventLevel.Warning) - .WriteTo.Console(); + // The default theme doesn't support light mode + .WriteTo.Console(theme: AnsiConsoleTheme.Sixteen); // AddSerilog doesn't seem to add an ILogger to the service collection, so add that manually. builder.Services.AddSerilog().AddSingleton(Log.Logger = logCfg.CreateLogger());