Skip to content

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. )

Configuration Syntax

${aspnet-application:variable=String}

Parameters

  • 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

Remarks

Use this layout renderer to output the value of the specified variable stored in the ASP.NET Application dictionary

Clone this wiki locally