-
Notifications
You must be signed in to change notification settings - Fork 1.4k
AspNet Request WebSocket Requested Protocols Layout Renderer
Rolf Kristensen edited this page Jul 18, 2022
·
2 revisions
ASP.NET Request HttpContext.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 string -
JsonArray
- 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
- 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