![]() |
VOOZH | about |
dotnet add package Serilog.Enrichers.Environment --version 3.0.1
NuGet\Install-Package Serilog.Enrichers.Environment -Version 3.0.1
<PackageReference Include="Serilog.Enrichers.Environment" Version="3.0.1" />
<PackageVersion Include="Serilog.Enrichers.Environment" Version="3.0.1" />Directory.Packages.props
<PackageReference Include="Serilog.Enrichers.Environment" />Project file
paket add Serilog.Enrichers.Environment --version 3.0.1
#r "nuget: Serilog.Enrichers.Environment, 3.0.1"
#:package Serilog.Enrichers.Environment@3.0.1
#addin nuget:?package=Serilog.Enrichers.Environment&version=3.0.1Install as a Cake Addin
#tool nuget:?package=Serilog.Enrichers.Environment&version=3.0.1Install as a Cake Tool
Enriches Serilog events with information from the execution environment.
👁 Build status
👁 NuGet Version
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.
The package includes:
WithMachineName() - adds MachineName based on either %COMPUTERNAME% (Windows) or $HOSTNAME (macOS, Linux)WithEnvironmentUserName() - adds EnvironmentUserName based on USERNAME and USERDOMAIN (if available)WithEnvironmentName() - adds EnvironmentName based on ASPNETCORE_ENVIRONMENT or 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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 is compatible. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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 |
|
|
Serilog.AspNetCore.Plus
Serilog support for ASP.NET Core logging with some plus features |
Showing the top 20 popular GitHub repositories that depend on Serilog.Enrichers.Environment:
| Repository | Stars |
|---|---|
|
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 10 Starter Kit (Web API + React 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.
|
|
|
rnwood/smtp4dev
smtp4dev - the fake smtp email server for development and testing
|
|
|
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.
|
|
|
AIDotNet/OpenDeepWiki
OpenDeepWiki is the open-source version of the DeepWiki project, aiming to provide a powerful knowledge management and collaboration platform. The project is mainly developed using C# and TypeScript, supporting modular design, and is easy to expand and customize.
|
|
|
Belphemur/SoundSwitch
C# application to switch default playing device. Download: https://soundswitch.aaflalo.me/
|
|
|
exceptionless/Exceptionless
Exceptionless application
|
|
|
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 21, React 19, Vue 3.5, BFF with YARP, NextJs 16, 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.
|
|
|
alxnbl/onenote-md-exporter
ConsoleApp to export OneNote notebooks to Markdown formats
|
|
|
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.
|
|
|
colinin/abp-next-admin
这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
|
|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
|
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
Modern admin UI for 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).
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.1 | 77,224,585 | 6/20/2024 |
| 3.0.1-dev-00816 | 1,013 | 6/20/2024 |
| 3.0.0 | 1,657,237 | 6/9/2024 |
| 3.0.0-dev-00811 | 418 | 6/9/2024 |
| 3.0.0-dev-00806 | 340,055 | 11/14/2023 |
| 3.0.0-dev-00804 | 21,787 | 10/26/2023 |
| 3.0.0-dev-00802 | 1,872 | 10/26/2023 |
| 2.3.1-dev-00801 | 21,641 | 10/16/2023 |
| 2.3.0 | 33,195,598 | 10/3/2023 |
| 2.3.0-dev-00793 | 106,103 | 6/4/2023 |
| 2.3.0-dev-00792 | 120,538 | 2/3/2023 |
| 2.3.0-dev-00791 | 25,649 | 1/4/2023 |
| 2.2.1-dev-00787 | 885,663 | 8/15/2021 |
| 2.2.0 | 81,140,715 | 8/15/2021 |
| 2.2.0-dev-00784 | 80,671 | 4/5/2021 |
| 2.2.0-dev-00780 | 26,696 | 2/10/2021 |
| 2.2.0-dev-00777 | 18,170 | 2/4/2021 |
| 2.2.0-dev-00773 | 201,259 | 12/15/2020 |
| 2.2.0-dev-00770 | 2,465 | 12/12/2020 |
| 2.2.0-dev-00761 | 321,119 | 8/2/2020 |