- Notifications
You must be signed in to change notification settings - Fork1.4k
AspNet Request WebSocket Requested Protocols Layout Renderer
Rolf Kristensen edited this pageJul 18, 2022 ·2 revisions
ASP.NET RequestHttpContext.WebSockets.WebSocketRequestedProtocols
Platforms Supported:All
Introduced with NLog.Web.AspNetCore v5.1.0 and NLog.Web v5.1.0 (NET46)
${aspnet-request-web-socket-requested-protocols}outputFormat - Renders as flat string or as JSON. Default:
Flat.Flat- Key-value-pair as standard stringJsonArray- Key-value-pair in JSON-array
itemSeparator Separator between items. Default:
,. Only applies when OutputFormat isFlat.
-Troubleshooting Guide - See available NLog Targets and Layouts:https://nlog-project.org/config
- All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json