| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The environment variable like USERNAME, TMP, USERPROFILE, COMPUTERNAME, PROCESSOR_ARCHITECTURE etc.
Platforms Supported: All
${environment:variable=String}
For better performance then consider to combine with cached=true. Thus only resolving environment-variable value only once, but then not react to any changes of the environment variable.
This Layout Renderer outputs environment variables, and NOT properties from System.Environment
To list all environment variables in your system:
log file for 32 bits systems in folder 32 and otherwise in folder 64
<target
xsi:type="File"
name="file1"
fileName="c:\temp\${when:when='${environment:PROCESSOR_ARCHITECTURE:cached=true}'='X86':inner=32:else=64}\file.log" />- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
| Back | FazBrowse Home | New Git URL |