Serilog.Extras 1.0.3

There is a newer version of this package available.
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                
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="Serilog.Extras" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Extras --version 1.0.3                
#r "nuget: Serilog.Extras, 1.0.3"                
#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.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 337 12/1/2023
1.0.7-beta 150 5/11/2022
1.0.6 2,167 4/1/2022
1.0.3 478 2/7/2022