I have
var sentinalTarget = new NLogViewerTarget()
{
Name = "sentinal",
Address = "udp://127.0.0.1:9999",
IncludeCallSite = true,
IncludeSourceInfo = true
};
sentinalTarget.Parameters.Add(new NLogViewerParameterInfo()
{
Name = "Callsite",
Layout = "${callsite:fileName=true:includeSourcePath=false:skipFrames=1}"
});
var sentinalRule = new LoggingRule("*", LogLevel.Trace, sentinalTarget);
LogManager.Configuration.AddTarget("sentinal", sentinalTarget);
LogManager.Configuration.LoggingRules.Add(sentinalRule);
I need to add skipframe=1
on callsite in order to see the actual class that called the NLog methods.
Is there a way to do that?