Serilog.Extras
1.0.3
See the version list below for details.
dotnet add package Serilog.Extras --version 1.0.3
NuGet\Install-Package Serilog.Extras -Version 1.0.3
<PackageReference Include="Serilog.Extras" Version="1.0.3" />
paket add Serilog.Extras --version 1.0.3
#r "nuget: Serilog.Extras, 1.0.3"
// Install Serilog.Extras as a Cake Addin #addin nuget:?package=Serilog.Extras&version=1.0.3 // Install Serilog.Extras as a Cake Tool #tool nuget:?package=Serilog.Extras&version=1.0.3
Overview
This package contains two enrichers and a handler to add request logging but excluding health checks. The latter part is heavily based on Andrew Lock's blog entry.
Enrichers
Version Number
This takes the environment variable VERSION_NUMBER
and, if presents, logs the value to a VersionNumber
field. If not present, N/A
is logged.
Usage
Add WithVersionNumber
to the Enrich
array in the Serilog configuration node.
Deployment Environment
This takes the environment variable ASPNETCORE_ENVIRONMENT
and, if presents, logs the value to a DeploymentEnvironment
field. If not present, N/A
is logged.
Usage
Add WithDeploymentEnvironment
to the Enrich
array in the Serilog configuration node.
Request Logging Without Health Checks
This is the same as the standard app.UseSerilogRequestLogging()
call but filters out health checks. This is heavily based on Andrew Lock's blog entry.
Usage
Use app.UseSerilogRequestLoggingWithoutHealthChecks()
(instead of app.UseSerilogRequestLogging()
)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Serilog.AspNetCore (>= 4.1.0)
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 |
---|---|---|
1.0.8-beta | 621 | 12/1/2023 |
1.0.7-beta | 184 | 5/11/2022 |
1.0.6 | 3,331 | 4/1/2022 |
1.0.3 | 524 | 2/7/2022 |