<PackageReference Include="Serilog.Enrichers.Environment" Version="3.0.0" />

Serilog.Enrichers.EnvironmentVariableEnricher

Enriches log events with a EnvironmentName property containing the value of the ASPNETCORE_ENVIRONMENT or DOTNET_ENVIRONMENT environment variable.
namespace Serilog.Enrichers { internal sealed class EnvironmentVariableEnricher : CachedPropertyEnricher { public EnvironmentVariableEnricher(string envVarName, string propertyName); } }