Skip to content

Host Environment Layout Renderer

Rolf Kristensen edited this page Jun 21, 2025 · 5 revisions

HostEnvironment EnvironmentName (DOTNET_ENVIRONMENT / ASPNETCORE_ENVIRONMENT)

Platforms Supported: All

Introduced with NLog.Extensions.Hostting v6.0 and NLog.Web.AspNetCore v6.0

Configuration Syntax

${host-environment}

Remarks

The host automatically sets this property to the value of the ASPNETCORE_ENVIRONMENT environment variable, or "environment" as specified in any other configuration source.

Clone this wiki locally