-
Notifications
You must be signed in to change notification settings - Fork 1.4k
AppDomain Layout Renderer
Rolf Kristensen edited this page Nov 27, 2021
·
9 revisions
Render the application domain name.
Platforms Supported: All (Fake AppDomain used for NetStandard)
${appdomain:format=Format}
-
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".
- 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.
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
- 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