除非我完全错过了,否则我的印象是NLog文档在示例中使用${basedir}
而没有解释其位置应该在哪里。
我在哪里可以找到列出所有可能选项及其有意义描述的信息?
我已定义此配置:
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" throwExceptions="true">
<targets>
<target name="file" xsi:type="File"
layout="${longdate} ${logger} ${message}"
fileName="${basedir}/logs/${shortdate}.txt"
keepFileOpen="false"
encoding="iso-8859-2" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="file" />
</rules>
</nlog>
就我所知,它似乎能够正常运行,但我不知道它记录任何信息的位置。