From 7170bd74fa6e0e506c00b91be798576230c38ea0 Mon Sep 17 00:00:00 2001 From: Vectron Date: Tue, 15 Oct 2024 14:43:47 +0200 Subject: [PATCH] Switch from Vectron.Extensions.Logging.Console.Formatter to Vectron.Extensions.Logging.Theming.Console --- src/PlcInterface.Sandbox/PlcInterface.Sandbox.csproj | 4 ++-- src/PlcInterface.Sandbox/Program.cs | 4 ++-- src/PlcInterface.Sandbox/appsettings.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/PlcInterface.Sandbox/PlcInterface.Sandbox.csproj b/src/PlcInterface.Sandbox/PlcInterface.Sandbox.csproj index f4c36ff..202bc5e 100644 --- a/src/PlcInterface.Sandbox/PlcInterface.Sandbox.csproj +++ b/src/PlcInterface.Sandbox/PlcInterface.Sandbox.csproj @@ -7,9 +7,9 @@ - + - + diff --git a/src/PlcInterface.Sandbox/Program.cs b/src/PlcInterface.Sandbox/Program.cs index 3a479c8..182a29e 100644 --- a/src/PlcInterface.Sandbox/Program.cs +++ b/src/PlcInterface.Sandbox/Program.cs @@ -6,7 +6,7 @@ using PlcInterface.OpcUa; using PlcInterface.Sandbox.PLCCommands; using TwinCAT.Ads.TcpRouter; -using Vectron.Extensions.Logging.Console.Formatter; +using Vectron.Extensions.Logging.Theming.Console; using Vectron.InteractiveConsole; using Vectron.InteractiveConsole.AutoComplete; using Vectron.InteractiveConsole.Commands; @@ -33,7 +33,7 @@ private static async Task Main(string[] args) var builder = Host.CreateApplicationBuilder(args); _ = builder.Logging - .AddSingleLineConsole(); + .AddSingleLineThemedConsole(); _ = builder.Services .AddConsoleCommand() diff --git a/src/PlcInterface.Sandbox/appsettings.json b/src/PlcInterface.Sandbox/appsettings.json index bf3c420..933b179 100644 --- a/src/PlcInterface.Sandbox/appsettings.json +++ b/src/PlcInterface.Sandbox/appsettings.json @@ -7,13 +7,13 @@ }, "Console": { - "FormatterName": "SingleLineFormatter", + "FormatterName": "Themed", "FormatterOptions": { "IncludeScopes": true, "TimestampFormat": "HH:MM:ss", "UseUtcTimestamp": false, "ColorWholeLine": false, - "Theme": "MEL" + "Theme": "MEL-Dark" }, "LogLevel": { "Default": "Information"