AspNet MVC Action Layout Renderer
Rolf Kristensen edited this page Jan 1, 2022
·
4 revisions
ASP.NET MVC Action-Name by lookup of action
-value in HttpContext.Current.GetRouteData
Platforms Supported: All
Introduced in NLog.Web 4.3
${aspnet-mvc-action}
Use this layout renderer to insert the Action Method from MVC Pipeline.
See also AspNetRequest-RouteParameters-Layout-Renderer for lookup of other Route-Parameter Values.
- 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