Serilog.Enrichers.Environment
                              
                            
                                3.0.1-dev-00816
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    See the version list below for details.
dotnet add package Serilog.Enrichers.Environment --version 3.0.1-dev-00816
NuGet\Install-Package Serilog.Enrichers.Environment -Version 3.0.1-dev-00816
<PackageReference Include="Serilog.Enrichers.Environment" Version="3.0.1-dev-00816" />
<PackageVersion Include="Serilog.Enrichers.Environment" Version="3.0.1-dev-00816" />
<PackageReference Include="Serilog.Enrichers.Environment" />
paket add Serilog.Enrichers.Environment --version 3.0.1-dev-00816
#r "nuget: Serilog.Enrichers.Environment, 3.0.1-dev-00816"
#:package Serilog.Enrichers.Environment@3.0.1-dev-00816
#addin nuget:?package=Serilog.Enrichers.Environment&version=3.0.1-dev-00816&prerelease
#tool nuget:?package=Serilog.Enrichers.Environment&version=3.0.1-dev-00816&prerelease
Serilog.Enrichers.Environment
Enriches Serilog events with information from the execution environment.
To use the enricher, first install the NuGet package:
dotnet add package Serilog.Enrichers.Environment
Then, apply the enricher to you LoggerConfiguration:
Log.Logger = new LoggerConfiguration()
    .Enrich.WithMachineName()
    // ...other configuration...
    .CreateLogger();
The WithMachineName() enricher will add a MachineName property to produced events.
Included enrichers
The package includes:
- WithMachineName()- adds- MachineNamebased on either- %COMPUTERNAME%(Windows) or- $HOSTNAME(macOS, Linux)
- WithEnvironmentUserName()- adds- EnvironmentUserNamebased on- USERNAMEand- USERDOMAIN(if available)
- WithEnvironmentName()- adds- EnvironmentNamebased on- ASPNETCORE_ENVIRONMENTor- DOTNET_ENVIRONMENT(when both are available then 'ASPNETCORE_ENVIRONMENT' takes precedence, when none are available then the fallback value will be 'Production')
- WithEnvironmentVariable(string envVarName, string propertyName = null)- adds an- <envVarName>property to the log event with the value for the specified environment variable. Optional- <propertyName>will override- <envVarName>as propertyName.
Copyright © 2016 Serilog Contributors - Provided under the Apache License, Version 2.0.
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. 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. net9.0 was computed. 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 was computed. 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. | 
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. | 
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. | 
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 was computed. net481 was computed. | 
| MonoAndroid | monoandroid was computed. | 
| MonoMac | monomac was computed. | 
| MonoTouch | monotouch was computed. | 
| Tizen | tizen40 was computed. tizen60 was computed. | 
| Xamarin.iOS | xamarinios was computed. | 
| Xamarin.Mac | xamarinmac was computed. | 
| Xamarin.TVOS | xamarintvos was computed. | 
| Xamarin.WatchOS | xamarinwatchos was computed. | 
NuGet packages (530)
Showing the top 5 NuGet packages that depend on Serilog.Enrichers.Environment:
| Package | Downloads | 
|---|---|
| IppDotNetSdkForQuickBooksApiV3 The IPP .NET SDK for QuickBooks V3 is a set of .NET classes that make it easier to call QuickBooks APIs. This is the .Net Standard 2.0 version of the .Net SDK | |
| NBomber Modern and flexible load testing framework for Pull and Push scenarios, designed to test any system regardless a protocol (HTTP/WebSockets/AMQP etc) or a semantic model (Pull/Push). | |
| Sitko.Core.App Sitko.Core is a set of libraries to help build .NET Core applications fast | |
| Takenet.Iris.Common Iris common data types package | |
| Arcus.Observability.Telemetry.Serilog.Enrichers Provides capability to improve telemetry with Serilog in applications | 
GitHub repositories (63)
Showing the top 20 popular GitHub repositories that depend on Serilog.Enrichers.Environment:
| Repository | Stars | 
|---|---|
| fullstackhero/dotnet-starter-kit 
                                                            Production Grade Cloud-Ready .NET 9 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
                                                         | |
| kurrent-io/KurrentDB 
                                                            KurrentDB is a database that's engineered for modern software applications and event-driven architectures. Its event-native design simplifies data modeling and preserves data integrity while the integrated streaming engine solves distributed messaging challenges and ensures data consistency.
                                                         | |
| skoruba/IdentityServer4.Admin 
                                                            The administration for the IdentityServer4 and Asp.Net Core Identity
                                                         | |
| fullstackhero/blazor-starter-kit 
                                                            Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
                                                         | |
| Dotnet-Boxed/Templates 
                                                            .NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
                                                         | |
| Belphemur/SoundSwitch 
                                                            C# application to switch default playing device. Download: https://soundswitch.aaflalo.me/
                                                         | |
| exceptionless/Exceptionless 
                                                            Exceptionless application
                                                         | |
| phongnguyend/Practical.CleanArchitecture 
                                                            Full-stack .Net 9 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 20, React 19, Vue 3.5, BFF with YARP, NextJs 15, Domain-Driven Design, CQRS, SOLID, Asp.Net Core Identity Custom Storage, OpenID Connect, EF Core, OpenTelemetry, SignalR, Background Services, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ..
                                                         | |
| NuGet/NuGetGallery 
                                                            NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
                                                         | |
| iammukeshm/CleanArchitecture.WebApi 
                                                            An implementation of Clean Architecture for ASP.NET Core 3.1 WebAPI. Built with loosely coupled architecture and clean-code practices in mind.
                                                         | |
| alxnbl/onenote-md-exporter 
                                                            ConsoleApp to export OneNote notebooks to Markdown formats
                                                         | |
| CodeMazeBlog/CodeMazeGuides 
                                                            The main repository for all the Code Maze guides
                                                         | |
| colinin/abp-next-admin 
                                                            这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
                                                         | |
| Aguafrommars/TheIdServer 
                                                            OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
                                                         | |
| iayti/CleanArchitecture 
                                                            ASP.NET Core 6 Web API Clean Architecture Solution Template
                                                         | |
| skoruba/Duende.IdentityServer.Admin 
                                                            The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
                                                         | |
| PacktPublishing/Hands-On-Domain-Driven-Design-with-.NET-Core 
                                                            Hands-On Domain-Driven Design with .NET Core, published by Packt
                                                         | |
| dsbenghe/Novell.Directory.Ldap.NETStandard 
                                                            .NET LDAP client library for .NET Standard >= 2.0, .NET Core >=1.0, NET5/NET6/NET7/NET8 - works with any LDAP protocol compatible directory server (including Microsoft Active Directory).
                                                         | |
| nkdAgility/azure-devops-migration-tools 
                                                            Azure DevOps Migration Tools allow you to migrate Teams, Backlogs, Work Items, Tasks, Test Cases, and Plans & Suits from one Project to another in Azure DevOps / TFS both within the same Organisation, and between Organisations.
                                                         | |
| fullstackhero/dotnet-microservices-boilerplate 
                                                            The Ultimate Microservices Starter Kit for .NET Developers!
                                                         | 
| Version | Downloads | Last Updated | 
|---|---|---|
| 3.0.1 | 38,452,229 | 6/20/2024 | 
| 3.0.1-dev-00816 | 369 | 6/20/2024 | 
| 3.0.0 | 991,260 | 6/9/2024 | 
| 3.0.0-dev-00811 | 309 | 6/9/2024 | 
| 3.0.0-dev-00806 | 303,715 | 11/14/2023 | 
| 3.0.0-dev-00804 | 21,191 | 10/26/2023 | 
| 3.0.0-dev-00802 | 1,563 | 10/26/2023 | 
| 2.3.1-dev-00801 | 15,548 | 10/16/2023 | 
| 2.3.0 | 26,302,878 | 10/3/2023 | 
| 2.3.0-dev-00793 | 101,200 | 6/4/2023 | 
| 2.3.0-dev-00792 | 114,522 | 2/3/2023 | 
| 2.3.0-dev-00791 | 23,505 | 1/4/2023 | 
| 2.2.1-dev-00787 | 832,159 | 8/15/2021 | 
| 2.2.0 | 72,925,048 | 8/15/2021 | 
| 2.2.0-dev-00784 | 78,917 | 4/5/2021 | 
| 2.2.0-dev-00780 | 26,079 | 2/10/2021 | 
| 2.2.0-dev-00777 | 17,715 | 2/4/2021 | 
| 2.2.0-dev-00773 | 197,424 | 12/15/2020 | 
| 2.2.0-dev-00770 | 2,336 | 12/12/2020 | 
| 2.2.0-dev-00761 | 299,122 | 8/2/2020 | 
| 2.1.3 | 59,518,995 | 3/8/2019 | 
| 2.1.3-dev-00759 | 1,719 | 6/29/2020 | 
| 2.1.3-dev-00752 | 158,259 | 9/22/2018 | 
| 2.1.3-dev-00748 | 40,080 | 6/3/2018 | 
| 2.1.3-dev-00746 | 41,144 | 5/9/2018 | 
| 2.1.3-dev-00736 | 88,369 | 8/16/2017 | 
| 2.1.2 | 11,215,177 | 3/21/2017 | 
| 2.1.2-dev-00731 | 7,060 | 2/21/2017 | 
| 2.1.1 | 449,016 | 11/22/2016 | 
| 2.1.1-dev-00727 | 2,279 | 11/22/2016 | 
| 2.1.1-dev-00724 | 3,133 | 8/11/2016 | 
| 2.1.0 | 450,175 | 7/26/2016 | 
| 2.1.0-dev-00719 | 2,572 | 7/26/2016 | 
| 2.0.1 | 134,842 | 7/18/2016 | 
| 2.0.0 | 461,141 | 6/29/2016 | 
| 2.0.0-rc-710 | 3,036 | 5/26/2016 | 
| 2.0.0-rc-708 | 2,727 | 5/17/2016 | 
| 2.0.0-beta-701 | 2,795 | 4/11/2016 | 
| 2.0.0-beta-700 | 2,314 | 3/23/2016 | 
| 2.0.0-beta-521 | 2,275 | 3/18/2016 | 
| 2.0.0-beta-519 | 2,392 | 3/16/2016 | 
| 2.0.0-beta-516 | 2,259 | 3/15/2016 | 
| 2.0.0-beta-515 | 2,273 | 3/15/2016 | 
| 2.0.0-beta-513 | 2,270 | 3/15/2016 | 
| 2.0.0-beta-511 | 2,249 | 3/14/2016 | 
| 2.0.0-beta-509 | 2,238 | 3/13/2016 | 
| 2.0.0-beta-507 | 2,826 | 3/1/2016 | 
| 2.0.0-beta-505 | 2,387 | 2/25/2016 | 
| 2.0.0-beta-502 | 2,383 | 2/22/2016 | 
| 2.0.0-beta-499 | 2,305 | 2/21/2016 |