From d65c34b271a73fc2c469f39cbaa9e450d309a6a9 Mon Sep 17 00:00:00 2001 From: Albie Spriddell Date: Mon, 16 Oct 2023 13:39:57 +0100 Subject: [PATCH] add simple console support --- DragonFruit.OnionFruit.Web.Worker/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DragonFruit.OnionFruit.Web.Worker/Program.cs b/DragonFruit.OnionFruit.Web.Worker/Program.cs index fb30c80..acf74be 100644 --- a/DragonFruit.OnionFruit.Web.Worker/Program.cs +++ b/DragonFruit.OnionFruit.Web.Worker/Program.cs @@ -55,6 +55,14 @@ private static void ConfigureHost(IConfigurationBuilder host) private static void ConfigureLogging(HostBuilderContext host, ILoggingBuilder logging) { + logging.ClearProviders(); + logging.AddSimpleConsole(o => + { + o.SingleLine = true; + o.IncludeScopes = false; + o.TimestampFormat = "[dd/MM/yyyy hh:mm:ss] "; + }); + #if WINDOWS logging.AddEventLog(o => {