Serilog.Enrichers.Environment 3.0.1
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()- addsMachineNamebased on either%COMPUTERNAME%(Windows) or$HOSTNAME(macOS, Linux)WithEnvironmentUserName()- addsEnvironmentUserNamebased onUSERNAMEandUSERDOMAIN(if available)WithEnvironmentName()- addsEnvironmentNamebased onASPNETCORE_ENVIRONMENTorDOTNET_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.
Showing the top 20 packages that depend on Serilog.Enrichers.Environment.
| Packages | 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
|
23 |
|
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
|
22 |
|
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
|
21 |
|
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
|
20 |
|
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
|
19 |
|
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
|
18 |
|
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
|
17 |
|
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
|
16 |
|
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
|
15 |
|
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
|
14 |
| Version | Downloads | Last updated |
|---|---|---|
| 3.0.1 | 19 | 08/09/2024 |
| 3.0.1-dev-00816 | 11 | 07/05/2026 |
| 3.0.0 | 11 | 06/10/2024 |
| 3.0.0-dev-00811 | 10 | 06/24/2026 |
| 3.0.0-dev-00806 | 16 | 07/14/2024 |
| 3.0.0-dev-00804 | 14 | 05/17/2025 |
| 3.0.0-dev-00802 | 19 | 03/16/2024 |
| 2.3.1-dev-00801 | 12 | 06/16/2024 |
| 2.3.0 | 17 | 01/05/2024 |
| 2.3.0-dev-00793 | 13 | 03/22/2024 |
| 2.3.0-dev-00792 | 13 | 03/10/2024 |
| 2.3.0-dev-00791 | 12 | 10/21/2024 |
| 2.2.1-dev-00787 | 13 | 06/24/2026 |
| 2.2.0 | 15 | 01/05/2024 |
| 2.2.0-dev-00784 | 8 | 01/07/2025 |
| 2.2.0-dev-00780 | 12 | 06/24/2026 |
| 2.2.0-dev-00777 | 12 | 02/13/2025 |
| 2.2.0-dev-00773 | 13 | 04/22/2024 |
| 2.2.0-dev-00770 | 14 | 10/27/2024 |
| 2.2.0-dev-00761 | 13 | 07/08/2026 |
| 2.1.3 | 14 | 01/05/2024 |
| 2.1.3-dev-00759 | 11 | 06/24/2026 |
| 2.1.3-dev-00752 | 20 | 02/28/2025 |
| 2.1.3-dev-00748 | 11 | 10/25/2024 |
| 2.1.3-dev-00746 | 15 | 01/21/2025 |
| 2.1.3-dev-00736 | 13 | 07/20/2024 |
| 2.1.2 | 14 | 01/04/2024 |
| 2.1.2-dev-00731 | 7 | 06/24/2026 |
| 2.1.1 | 15 | 01/04/2024 |
| 2.1.1-dev-00727 | 10 | 06/29/2026 |
| 2.1.1-dev-00724 | 18 | 06/24/2026 |
| 2.1.0 | 15 | 01/04/2024 |
| 2.1.0-dev-00719 | 15 | 06/05/2024 |
| 2.0.1 | 16 | 01/03/2024 |
| 2.0.0 | 11 | 01/04/2024 |
| 2.0.0-rc-710 | 12 | 08/19/2024 |
| 2.0.0-rc-708 | 16 | 06/24/2026 |
| 2.0.0-beta-701 | 12 | 01/18/2024 |
| 2.0.0-beta-700 | 18 | 06/24/2026 |
| 2.0.0-beta-521 | 15 | 06/24/2026 |
| 2.0.0-beta-519 | 14 | 06/24/2026 |
| 2.0.0-beta-516 | 16 | 09/07/2025 |
| 2.0.0-beta-515 | 14 | 07/09/2024 |
| 2.0.0-beta-513 | 19 | 02/19/2024 |
| 2.0.0-beta-511 | 11 | 01/05/2025 |
| 2.0.0-beta-509 | 13 | 06/24/2026 |
| 2.0.0-beta-507 | 12 | 06/24/2026 |
| 2.0.0-beta-505 | 16 | 06/24/2026 |
| 2.0.0-beta-502 | 13 | 01/20/2025 |
| 2.0.0-beta-499 | 12 | 06/24/2026 |