ProcessDir Layout Renderer
Rolf Kristensen edited this page Mar 6, 2022
·
6 revisions
The current process executable directory of the application.
Platforms Supported: Limited (Not supported for NetStandard1.3)
Introduced in NLog v4.7.1.
See also ${basedir}, ${specialfolder}, ${currentdir}, ${tempdir}
${processdir:dir=String:file=String}
-
dir: Name of the directory to be Path.Combine()'d with the process directory.
-
file: Name of the file to be Path.Combine()'d with the process directory.
This is the same as using ${basedir:processDir=true}
.
See also: FileTarget FileName Directory
- 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