<nlog xmlns="http://www.nlog-project.org/schemas/NLog.mono2.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	  throwExceptions="true">
	  
  <targets>
<target name="jsonFile" xsi:type="File" fileName="${tempdir}/HPDiagnosticCoreUI_PSdrClient.json">
      <layout xsi:type="JsonLayout">
              <attribute name="time" layout="${longdate}" />
			   <attribute name="origin" layout="${callsite}" />
              <attribute name="linenumber" layout="${callsite-linenumber}" />
              <attribute name="thread" layout="${threadid}" />
              <attribute name="level" layout="${level:upperCase=true}"/>
              <attribute name="message" layout="${message}" />
       </layout>
</target>  </targets>
  <rules>
    <logger name="*" minLevel="Trace" writeTo="jsonFile" />
  </rules>
</nlog>