ALSI.Serilog.Enrichers 1.0.0-rc.5

This is a prerelease version of ALSI.Serilog.Enrichers.
There is a newer version of this package available.
See the version list below for details.
dotnet add package ALSI.Serilog.Enrichers --version 1.0.0-rc.5                
NuGet\Install-Package ALSI.Serilog.Enrichers -Version 1.0.0-rc.5                
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="ALSI.Serilog.Enrichers" Version="1.0.0-rc.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ALSI.Serilog.Enrichers --version 1.0.0-rc.5                
#r "nuget: ALSI.Serilog.Enrichers, 1.0.0-rc.5"                
#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 ALSI.Serilog.Enrichers as a Cake Addin
#addin nuget:?package=ALSI.Serilog.Enrichers&version=1.0.0-rc.5&prerelease

// Install ALSI.Serilog.Enrichers as a Cake Tool
#tool nuget:?package=ALSI.Serilog.Enrichers&version=1.0.0-rc.5&prerelease                

ALSI.Serilog.Enrichers

NuGet Version Build Status Downloads codecov

ALSI.Serilog.Enrichers is a .NET library that provides 3 enrichers

  • Environment: enriches the log with the environment name and thread id that logged the message
  • LokiLevel: enriches the log with a "level" that Loki can natively support
  • Drop: enriches the log by dropping unwanted properties from the log message.

Getting Started

Installation

Install the NuGet package using the .NET CLI:

dotnet add package ALSI.Serilog.Enrichers

Or via the NuGet Package Manager:

Install-Package ALSI.Serilog.Enrichers

Usage

Basic Example
using ALSI.Serilog.Enrichers;
using Serilog;

Log.Logger = new LoggerConfiguration()
    .Enrich.FromEnvironment()
    .Enrich.FromLokiLevels()
    .Enrich.ByDropping("my_property")
    ...

Contributing

We welcome contributions! Feel free to open an issue or submit a pull request on GitHub.

Building Locally

Clone the repository:

git clone https://github.com/alsi-lawr/alsi.serilog.enrichers.git
cd ALSI.Serilog.Enrichers

Build the project:

dotnet build

Run tests:

dotnet test
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 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. 
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.1 123 9/5/2024
1.0.0 108 9/5/2024
1.0.0-rc.5 56 9/5/2024
0.0.0-rc.3 53 9/5/2024
0.0.0-rc.2 55 9/5/2024
0.0.0-rc.1 50 9/5/2024