Skip to content

Commit

Permalink
Switch from Vectron.Extensions.Logging.Console.Formatter to Vectron.E…
Browse files Browse the repository at this point in the history
…xtensions.Logging.Theming.Console
  • Loading branch information
Vectron committed Oct 15, 2024
1 parent 9ab8690 commit 7170bd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/PlcInterface.Sandbox/PlcInterface.Sandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<ItemGroup>
<Compile Include="$(CommonDirectory)\IndicesHelper.cs" LinkBase="Common" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Vectron.Extensions.Logging.Console.Formatter" Version="1.0.48" />
<PackageReference Include="Vectron.Extensions.Logging.Theming.Console" Version="1.0.24" />
<PackageReference Include="Vectron.InteractiveConsole" Version="1.0.68" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
Expand Down
4 changes: 2 additions & 2 deletions src/PlcInterface.Sandbox/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -33,7 +33,7 @@ private static async Task Main(string[] args)
var builder = Host.CreateApplicationBuilder(args);

_ = builder.Logging
.AddSingleLineConsole();
.AddSingleLineThemedConsole();

_ = builder.Services
.AddConsoleCommand()
Expand Down
4 changes: 2 additions & 2 deletions src/PlcInterface.Sandbox/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7170bd7

Please sign in to comment.