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()
- addsMachineName
based on either%COMPUTERNAME%
(Windows) or$HOSTNAME
(macOS, Linux)WithEnvironmentUserName()
- addsEnvironmentUserName
based onUSERNAME
andUSERDOMAIN
(if available)WithEnvironmentName()
- addsEnvironmentName
based onASPNETCORE_ENVIRONMENT
orDOTNET_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
|
8 |
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
|
7 |
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
|
6 |
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
|
5 |
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
|
4 |
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
|
3 |
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
|
2 |
Version | Downloads | Last updated |
---|---|---|
3.0.1 | 5 | 06/25/2024 |
3.0.1-dev-00816 | 2 | 06/25/2024 |
3.0.0 | 2 | 06/16/2024 |
3.0.0-dev-00811 | 3 | 06/16/2024 |
3.0.0-dev-00806 | 4 | 05/31/2024 |
3.0.0-dev-00804 | 2 | 06/07/2024 |
3.0.0-dev-00802 | 6 | 05/31/2024 |
2.3.1-dev-00801 | 3 | 05/31/2024 |
2.3.0 | 2 | 06/02/2024 |
2.3.0-dev-00793 | 3 | 05/31/2024 |
2.3.0-dev-00792 | 2 | 06/01/2024 |
2.3.0-dev-00791 | 2 | 05/31/2024 |
2.2.1-dev-00787 | 3 | 05/31/2024 |
2.2.0 | 4 | 06/02/2024 |
2.2.0-dev-00784 | 3 | 05/31/2024 |
2.2.0-dev-00780 | 3 | 06/01/2024 |
2.2.0-dev-00777 | 3 | 05/31/2024 |
2.2.0-dev-00773 | 8 | 05/31/2024 |
2.2.0-dev-00770 | 3 | 05/31/2024 |
2.2.0-dev-00761 | 3 | 05/31/2024 |
2.1.3 | 3 | 05/31/2024 |
2.1.3-dev-00759 | 3 | 06/07/2024 |
2.1.3-dev-00752 | 3 | 05/31/2024 |
2.1.3-dev-00748 | 2 | 05/31/2024 |
2.1.3-dev-00746 | 3 | 05/31/2024 |
2.1.3-dev-00736 | 4 | 05/31/2024 |
2.1.2 | 2 | 06/02/2024 |
2.1.2-dev-00731 | 4 | 05/31/2024 |
2.1.1 | 12 | 06/07/2024 |
2.1.1-dev-00727 | 2 | 05/31/2024 |
2.1.1-dev-00724 | 3 | 05/31/2024 |
2.1.0 | 2 | 06/01/2024 |
2.1.0-dev-00719 | 4 | 06/06/2024 |
2.0.1 | 7 | 06/03/2024 |
2.0.0 | 2 | 05/31/2024 |
2.0.0-rc-710 | 3 | 06/01/2024 |
2.0.0-rc-708 | 3 | 05/31/2024 |
2.0.0-beta-701 | 2 | 05/31/2024 |
2.0.0-beta-700 | 6 | 05/31/2024 |
2.0.0-beta-521 | 3 | 05/31/2024 |
2.0.0-beta-519 | 2 | 05/31/2024 |
2.0.0-beta-516 | 7 | 06/01/2024 |
2.0.0-beta-515 | 3 | 05/31/2024 |
2.0.0-beta-513 | 3 | 05/31/2024 |
2.0.0-beta-511 | 7 | 05/31/2024 |
2.0.0-beta-509 | 4 | 05/31/2024 |
2.0.0-beta-507 | 2 | 06/01/2024 |
2.0.0-beta-505 | 3 | 05/31/2024 |
2.0.0-beta-502 | 3 | 05/31/2024 |
2.0.0-beta-499 | 3 | 05/31/2024 |