I am using NLog to log all my .NET applications. And I am looking for a software which can help me to view these long logs easily. So Legit Log Viewer comes to me. However, I am not able to view the log files, the Log Viewer says "unsupported log format". The following are my NLog.conf file and Legit Log Viewer layout file. Can anyone help me to figure out the mistake?
NLog.config target layout
layout="${level} | ${longdate} | ${callsite:className=true:fileName=false:includeSourcePath=false:methodName=true} | ${message} ${exception:format=tostring}"
My Legit Log Viewer Layout file.
<Description>
${level} | ${longdate} | ${logger} | ${message}
</Description>
<LogLine>
<Fields>
<LogFieldFormat Name="Level" FieldType="String" Delimiter="|" FilterColumn="true" HighlightRows="true" />
<LogFieldFormat Name="DateTime" FieldType="DateTime" Delimiter="|" Format="yyyy-MM-dd HH:mm:ss.ffff" />
<LogFieldFormat Name="Logger" FieldType="String" Delimiter="|" />
<LogFieldFormat Name="Message" FieldType="String" />
</Fields>
</LogLine>