- Notifications
You must be signed in to change notification settings - Fork1.4k
Callsite file name layout renderer
Rolf Kristensen edited this pageApr 23, 2020 ·2 revisions
The call site source file name. For full callsite useCallSiteLayoutRenderer
Introduced in NLog v4.5
Supported in .NET and Mono.
${callsite-filename:includeSourcePath=Boolean:skipFrames=Integer}- includeSourcePath - Shows the full path of the source file. Boolean Default: True
- skipFrames - The number of frames to skip. Integer Default: 0
- captureStackTrace - Logger should capture StackTrace, if it was not provided manually. Default:true
Introduced with NLog 4.7.1
Please also note that this infers heavy performance hit when doing lots of logging, as it has to capture full StackTrace for every log message.
-Troubleshooting Guide - See available NLog Targets and Layouts:https://nlog-project.org/config
- All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json