JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog 0.9.3-preview.1

This is a prerelease version of JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog" Version="0.9.3-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog" Version="0.9.3-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
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"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog@0.9.3-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog&version=0.9.3-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=JPSoftworks.CommandPalette.Extensions.Toolkit.Logging.Serilog&version=0.9.3-preview.1&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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