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
<PackageReference Include="CasCap.Common.Logging.Serilog" Version="4.11.0" />
<PackageVersion Include="CasCap.Common.Logging.Serilog" Version="4.11.0" />
<PackageReference Include="CasCap.Common.Logging.Serilog" />
paket add CasCap.Common.Logging.Serilog --version 4.11.0
#r "nuget: CasCap.Common.Logging.Serilog, 4.11.0"
#:package CasCap.Common.Logging.Serilog@4.11.0
#addin nuget:?package=CasCap.Common.Logging.Serilog&version=4.11.0
#tool nuget:?package=CasCap.Common.Logging.Serilog&version=4.11.0
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.0)
- 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.0)
- 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.0)
- 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.