Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.