JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog
0.9.3-preview.1
dotnet add package JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog --version 0.9.3-preview.1
NuGet\Install-Package JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog -Version 0.9.3-preview.1
<PackageReference Include="JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog" Version="0.9.3-preview.1" />
<PackageVersion Include="JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog" Version="0.9.3-preview.1" />
<PackageReference Include="JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog" />
paket add JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog --version 0.9.3-preview.1
#r "nuget: JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog, 0.9.3-preview.1"
#:package JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog@0.9.3-preview.1
#addin nuget:?package=JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog&version=0.9.3-preview.1&prerelease
#tool nuget:?package=JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog&version=0.9.3-preview.1&prerelease
Serilog adapter
This package bridges Command Palette extension host diagnostics and Serilog without making Serilog a dependency of the main toolkit.
Use one application-owned logger for runner and application diagnostics:
var host = ExtensionHostConfiguration.Resolve(args, parameters);
using var logger = new LoggerConfiguration()
.MinimumLevel.FromExtensionHost(host)
.WriteTo.DailyFile(host)
.WriteTo.CommandPalette()
.CreateLogger();
var runner = ExtensionHostRunner.CreateBuilder(host);
runner.UseSerilog(logger);
await runner.RunAsync();
ExtensionHostConfiguration.Resolve applies the Toolkit's -Debug convention and canonical local-app-data log path
once. FromExtensionHost and DailyFile consume that immutable configuration, while the application chooses which
destinations to register. The logger owns and disposes its daily-file sink.
UseSerilog replaces the Toolkit's default sinks and forwards host diagnostics into the application logger.
Explicitly added runner sinks remain active. WriteTo.CommandPalette adds the Command Palette host destination.
Verbose and fatal events are mapped to the logging-neutral debug and error levels respectively. Bridge markers bound accidental feedback when both adapters are connected to the same logging pipeline. The sink and logger passed to the adapters remain caller-owned.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0-windows10.0.22621 is compatible. net10.0-windows was computed. net10.0-windows10.0.22621 is compatible. |
-
net10.0-windows10.0.22621
- JPSoftworks.CommandPalette.Extensions.Toolkit (>= 0.9.3-preview.1)
- JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Abstractions (>= 0.9.3-preview.1)
- Serilog (>= 4.4.0)
-
net9.0-windows10.0.22621
- JPSoftworks.CommandPalette.Extensions.Toolkit (>= 0.9.3-preview.1)
- JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Abstractions (>= 0.9.3-preview.1)
- Serilog (>= 4.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.3-preview.1 | 34 | 7/31/2026 |