I recieved it
instead logger.log(customer);
I use this to add client properties:
NLog.LogEventInfo info = new LogEventInfo(LogLevel.Info,"Name",cus.Name);
info.Properties.Add("Name",cus.Name);
log.Log(info);
and in config I use this to print:
<target name="output" xsi:type="Debugger" layout="${event-context:item=Name}" />
source
share