Pocok.AppDefaults.Logging.Serilog
0.2.0-alpha.7
Prefix Reserved
dotnet add package Pocok.AppDefaults.Logging.Serilog --version 0.2.0-alpha.7
NuGet\Install-Package Pocok.AppDefaults.Logging.Serilog -Version 0.2.0-alpha.7
<PackageReference Include="Pocok.AppDefaults.Logging.Serilog" Version="0.2.0-alpha.7" />
<PackageVersion Include="Pocok.AppDefaults.Logging.Serilog" Version="0.2.0-alpha.7" />
<PackageReference Include="Pocok.AppDefaults.Logging.Serilog" />
paket add Pocok.AppDefaults.Logging.Serilog --version 0.2.0-alpha.7
#r "nuget: Pocok.AppDefaults.Logging.Serilog, 0.2.0-alpha.7"
#:package Pocok.AppDefaults.Logging.Serilog@0.2.0-alpha.7
#addin nuget:?package=Pocok.AppDefaults.Logging.Serilog&version=0.2.0-alpha.7&prerelease
#tool nuget:?package=Pocok.AppDefaults.Logging.Serilog&version=0.2.0-alpha.7&prerelease
Pocok.AppDefaults.Logging.Serilog
Pocok.AppDefaults.Logging.Serilog configures the accepted Serilog hosting packages rather than wrapping or replacing
Serilog.
var builder = Host.CreateApplicationBuilder(args);
builder.AddPocokSerilogDefaults();
Logger configuration is read from the conventional top-level Serilog section. The separate Pocok:Logging:Serilog
policy section controls only integration behavior such as preserving the static logger, forwarding to other Microsoft
logging providers, and adding LogContext enrichment. The resolved startup policy is available through
IOptions<SerilogDefaultsOptions>.
The package intentionally ships no sink and hard-codes no path, endpoint, retention rule, or environment-specific level.
Applications choose sinks through their own package references and Serilog configuration. This package is an alternative
provider policy and does not depend on Pocok.AppDefaults.Logging. A delegate can add code-based configuration after
the configuration section has been read.
Applying the configurator more than once to the same builder throws InvalidOperationException. Call
application-specific Serilog configuration after these defaults when order matters.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Microsoft.Extensions.Configuration.Binder (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Options (>= 10.0.10)
- Pocok.AppDefaults (>= 0.2.0-alpha.7)
- Serilog (>= 4.4.0)
- Serilog.Extensions.Hosting (>= 10.0.0)
- Serilog.Settings.Configuration (>= 10.0.1)
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.2.0-alpha.7 | 59 | 7/20/2026 |
| 0.2.0-alpha.6 | 55 | 7/20/2026 |
| 0.2.0-alpha.5 | 42 | 7/18/2026 |
| 0.1.0-alpha.1 | 53 | 7/15/2026 |