I'm trying to log inner exception messages by using NLog. This is a piece of my NLog.config file:
<target name="errors" xsi:type="File" layout="${longdate}${newline}
- Exception Message: ${exception:format=Message}${newline}
- InnerException Message: ${exception:innerExceptionSeparator=TEXT}${newline}"
fileName="\Logs\errors-${shortdate}.log"
concurrentWrites="true" />
</targets>
I'm getting the same message See the inner exception for details
for both Exception Message
and InnerException Message
lines of NLog.config file.
${message}
and line start are shown in the log – Astrix