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

Serilog.Enrichers.EnvironmentNameEnricher

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