c# - How to use callsite layout renderer with Sentinel log viewer? -



using nlog in 1 of application , able log information in different targets file,console,eventlog , nlogviewer.
using layout as

<?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-project.org/schemas/nlog.xsd"      xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" > <targets>   <target name="event" xsi:type="eventlog" layout="${longdate}|${level}|${message}|${event-properties:eventid}" source="nlogdemo" />   <target name="file" xsi:type="file" filename="c:\users\sharathk\desktop\tocompare\${shortdate}loggingdemo.txt"            layout="---------nlog file--------${newline}${longdate}=>${level}=>${message}=>${event-properties:eventid}=>${callsite:filename=true:methodname=true}" />   <target name="console"  xsi:type="console" layout="${longdate}|${level}|${message}|${callsite:filename=true}" />   <target name="viewer" xsi:type="nlogviewer" layout="${longdate}|${level}|${message}|${callsite:filename=true}" address="udp://10.100.18.166:9999"/> </targets> <rules>   <logger name="*" minlevel="trace" writeto="file,console,viewer" /> </rules> 

callsite property showing right information in file, console , eventlog its not showing information using callsite in sentinel
please resolve this.

include in network target

"includecallsite="true "includesourceinfo="true"


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -