AspNetApplication layout renderer
Rolf Kristensen edited this page Dec 30, 2022
·
9 revisions
ASP.NET Application Dictionary Value.
Platforms Support: Limited (Not supported in ASP.NET Core - ServerVariables are non-existing in ASP.NET Core. )
${aspnet-application:variable=String}
-
item - Key for lookup in Application-Dictionary (Required)
Introduced with NLog.Web v5.1, and replaces the
Variable
-option -
format - Format-specifier for converting the value as string (Optional)
Introduced with NLog.Web v5.0
-
culture - Culture-specifier for converting the value as string (Optional)
Introduced with NLog.Web v5.0
-
objectpath - Property path if the value is an object, also supports nested properties (Optional).
Introduced with NLog.Web v5.2.1
Use this layout renderer to output the value of the specified variable stored in the ASP.NET Application dictionary
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
- Getting started
- How to use structured logging
- Troubleshooting
- FAQ
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json