AspNet Request Duration Layout Renderer
Rolf Kristensen edited this page Jan 14, 2023
·
2 revisions
ASP.NET Request Duration.
Platforms Supported: All
Introduced with NLog.Web.AspNetCore v5.0.0 and NLog.Web v5.0.0
${aspnet-request-duration}
-
format - TimeSpan format. Can be any argument accepted by
TimeSpan.ToString(format)
.string
. Defaultnull
(Outputs milliseconds) -
Culture - The culture used for rendering. Default
CultureInfo.InvariantCulture
- 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