8000 Windows Identity Layout Renderer · NLog/NLog Wiki · GitHub
[go: up one dir, main page]

Skip to content

Windows Identity Layout Renderer

Rolf Kristensen edited this page Jul 2, 2025 · 19 revisions

Render Windows identity information (username) from the current thread-context.

Platforms Supported: Limited - Windows only and requires nuget-package NLog.WindowsIdentity since NLog 5.0

Configuration Syntax

${windows-identity:userName=Boolean:domain=Boolean}

Parameters

Rendering Options

  • userName - Indicates whether username should be included. Boolean Default: True
  • domain - Indicates whether domain name should be included. Boolean Default: True

Notes

Clone this wiki locally
0