CasCap.Common.Logging.Serilog
4.11.3
Prefix Reserved
dotnet add package CasCap.Common.Logging.Serilog --version 4.11.3
NuGet\Install-Package CasCap.Common.Logging.Serilog -Version 4.11.3
<PackageReference Include="CasCap.Common.Logging.Serilog" Version="4.11.3" />
<PackageVersion Include="CasCap.Common.Logging.Serilog" Version="4.11.3" />
<PackageReference Include="CasCap.Common.Logging.Serilog" />
paket add CasCap.Common.Logging.Serilog --version 4.11.3
#r "nuget: CasCap.Common.Logging.Serilog, 4.11.3"
#:package CasCap.Common.Logging.Serilog@4.11.3
#addin nuget:?package=CasCap.Common.Logging.Serilog&version=4.11.3
#tool nuget:?package=CasCap.Common.Logging.Serilog&version=4.11.3
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
Project References
| Project | Purpose |
|---|---|
CasCap.Common.Logging |
ApplicationLogging static logger factory |
| Product | Versions 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. |
-
net10.0
- CasCap.Common.Logging (>= 4.11.3)
- Serilog (>= 4.3.1)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Enrichers.AssemblyName (>= 2.0.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Span (>= 3.1.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Extensions.Hosting (>= 10.0.0)
- Serilog.Extensions.Logging (>= 10.0.0)
- Serilog.Settings.Configuration (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
-
net8.0
- CasCap.Common.Logging (>= 4.11.3)
- Serilog (>= 4.3.1)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Enrichers.AssemblyName (>= 2.0.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Span (>= 3.1.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Extensions.Hosting (>= 10.0.0)
- Serilog.Extensions.Logging (>= 10.0.0)
- Serilog.Settings.Configuration (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
-
net9.0
- CasCap.Common.Logging (>= 4.11.3)
- Serilog (>= 4.3.1)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Enrichers.AssemblyName (>= 2.0.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Span (>= 3.1.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Extensions.Hosting (>= 10.0.0)
- Serilog.Extensions.Logging (>= 10.0.0)
- Serilog.Settings.Configuration (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
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.3 | 143 | 5/13/2026 |
| 4.11.2 | 129 | 5/11/2026 |
| 4.11.1 | 107 | 5/11/2026 |
| 4.11.0 | 164 | 5/8/2026 |
| 4.10.5 | 106 | 5/4/2026 |
| 4.10.4 | 104 | 5/2/2026 |
| 4.10.3 | 122 | 4/24/2026 |
| 4.10.2 | 106 | 4/24/2026 |
| 4.10.1 | 115 | 4/23/2026 |
| 4.10.0 | 100 | 4/23/2026 |
| 4.9.3 | 121 | 4/20/2026 |
| 4.9.2 | 101 | 4/19/2026 |
| 4.9.1 | 112 | 4/17/2026 |
| 4.9.0 | 134 | 4/15/2026 |
| 4.8.1 | 179 | 4/2/2026 |
| 4.8.0 | 154 | 4/1/2026 |