Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AppDomain Layout Renderer

Rolf Kristensen edited this page Apr 21, 2026 · 11 revisions

Render the application domain name.

Platforms Supported: All

Configuration Syntax

${appdomain:format=Format}

Parameters

Rendering Options

  • format - The formating. Default to Long. possible options:
    • Long - default. The id as four number digit, colon, friendlyname. E.g. 0003:NLog.UnitTests
    • Short - Only the id as two number digit, like "03".
    • Friendly - Just the AppDomain FriendlyName. E.g. NLog.UnitTests

      Introduced with NLog v5.2.7

    • or custom like {0} - {1}. The first parameter is the"AppDomain.Id", the second is the "AppDomain.FriendlyName". Note: use escaping of the brackets. See examples.

Example

Examples in the .config

${appdomain} //e.g. 0003:NLog.UnitTests
${appdomain:format=short} //e.g. 03
${appdomain:format=long} //e.g. 0003:NLog.UnitTests
${appdomain:format={1\} - {0\}} //e.g. NLog.UnitTests - 3

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.