-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Host RootDir Layout Renderer
Rolf Kristensen edited this page Dec 31, 2025
·
3 revisions
HostEnvironment Content Root
Platforms Supported: All (Supported in Asp.NetCore and Asp.NET )
Introduced with NLog.Extensions.Hosting v6.0.0 and NLog.Web.AspNetCore v6.0.0 and NLog.Web v6.0.0
${host-rootdir}
Application base path is also known as the content root, while wwwroot-path is root directory for static content.
- 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