CasCap.Common.Logging.Serilog 4.11.0

Prefix Reserved
dotnet add package CasCap.Common.Logging.Serilog --version 4.11.0
                    
NuGet\Install-Package CasCap.Common.Logging.Serilog -Version 4.11.0
                    
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="CasCap.Common.Logging.Serilog" Version="4.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.Common.Logging.Serilog" Version="4.11.0" />
                    
Directory.Packages.props
<PackageReference Include="CasCap.Common.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 CasCap.Common.Logging.Serilog --version 4.11.0
                    
#r "nuget: CasCap.Common.Logging.Serilog, 4.11.0"
                    
#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 CasCap.Common.Logging.Serilog@4.11.0
                    
#: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=CasCap.Common.Logging.Serilog&version=4.11.0
                    
Install as a Cake Addin
#tool nuget:?package=CasCap.Common.Logging.Serilog&version=4.11.0
                    
Install as a Cake Tool

CasCap.Common.Logging.Serilog

Reusable Serilog configuration with standard enrichers, console sink, and health-check filtering built on top of CasCap.Common.Logging.

Installation

dotnet add package CasCap.Common.Logging.Serilog

Purpose

Provides a bootstrap logger for early startup logging and a composable AddCasCapDefaults extension on LoggerConfiguration that applies the standard CasCap Serilog pipeline: platform-aware console sink, common enrichers, health-check noise filter, and appsettings.json binding.

Target frameworks: net8.0, net9.0, net10.0

Extensions

Extension Description
SerilogExtensions.GetBootstrapLogger() Creates a bootstrap console logger and wires ApplicationLogging.LoggerFactory
SerilogWebApplicationBuilderExtensions.InitializeSerilog(builder, categoryName) Thread-safe one-shot Serilog initialization on a WebApplicationBuilder via UseSerilog + AddCasCapDefaults
LoggerConfiguration.AddCasCapDefaults(IConfiguration) Applies standard enrichers, console sink, health-check filter, and config binding

Enrichers Included

FromLogContext, WithEnvironmentName, WithEnvironmentUserName, WithProcessId, WithThreadId, WithExceptionDetails, WithAssemblyName, WithSpan

Dependencies

NuGet Packages

Package
Serilog
Serilog.Enrichers.AssemblyName
Serilog.Enrichers.Environment
Serilog.Enrichers.Process
Serilog.Enrichers.Span
Serilog.Enrichers.Thread
Serilog.Exceptions
Serilog.Extensions.Hosting
Serilog.Extensions.Logging
Serilog.Settings.Configuration
Serilog.Sinks.Console

Project References

Project Purpose
CasCap.Common.Logging ApplicationLogging static logger factory
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on CasCap.Common.Logging.Serilog:

Package Downloads
CasCap.Common.AI

AI and LLM integration abstractions for OpenAI, Ollama, and Model Context Protocol.

CasCap.Common.OpenTelemetry

Reusable OpenTelemetry configuration with standard metrics, traces, and log exporters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.11.0 5 5/8/2026
4.10.5 104 5/4/2026
4.10.4 102 5/2/2026
4.10.3 120 4/24/2026
4.10.2 105 4/24/2026
4.10.1 114 4/23/2026
4.10.0 98 4/23/2026
4.9.3 119 4/20/2026
4.9.2 98 4/19/2026
4.9.1 109 4/17/2026
4.9.0 130 4/15/2026
4.8.1 175 4/2/2026
4.8.0 150 4/1/2026