The call site source file name. For full callsite use CallSiteLayoutRenderer
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
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.