-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
${host-environment}
The host automatically sets this property to the value of the ASPNETCORE_ENVIRONMENT
environment variable, or "environment" as specified in any other configuration source.
10BC0
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
- Getting started
- How to use structured logging
- Troubleshooting
- FAQ
- Articles about NLog
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json