AspNet Request WebSocket Requested Protocols Layout Renderer - NLog/NLog GitHub Wiki

ASP.NET Request HttpContext.WebSockets.WebSocketRequestedProtocols

Platforms Supported: All

Introduced with NLog.Web.AspNetCore v5.1.0 and NLog.Web v5.1.0 (NET46)

Configuration Syntax

${aspnet-request-web-socket-requested-protocols}

Formatting options

  • outputFormat - Renders as flat string or as JSON. Default: Flat.

    • Flat - Key-value-pair as standard string
    • JsonArray - Key-value-pair in JSON-array
  • itemSeparator Separator between items. Default: ,. Only applies when OutputFormat is Flat.