我正在尝试使用 NLog 记录内部异常消息。这是我的NLog.config文件的一部分:
<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>
See the inner exception for details
对于NLog.config文件的行Exception Message
和InnerException Message
行,我都收到相同的消息。