C# NLog停止从app.config读取我的配置
我的.NET Framework项目已停止使用我的App.config文件配置NLog。 它不再使用我在其中定义的目标 我的App.config文件(出于保密原因,部分文件):C# NLog停止从app.config读取我的配置,c#,.net,nlog,C#,.net,Nlog,我的.NET Framework项目已停止使用我的App.config文件配置NLog。 它不再使用我在其中定义的目标 我的App.config文件(出于保密原因,部分文件): 有人看到我做得不对吗?basedir可能是错误的。默认情况下,NLog将自己的内部日志文件写入C:\temp\log.txt之类的文件。如果您能找到该日志,它可能会提供有用的信息。 <configSections> <section name="nlog" type=&q
有人看到我做得不对吗?basedir可能是错误的。默认情况下,NLog将自己的内部日志文件写入C:\temp\log.txt之类的文件。如果您能找到该日志,它可能会提供有用的信息。
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
</configSections>
<nlog>
<targets>
<target name="flowdatabase" type="FlowDatabase" />
<target name="console" type="Console" />
<target name="logfile" type="File" fileName="${basedir}/log/debug.nlog" archiveFileName="${basedir}/log/archives/debug.{#####}.nlog" archiveEvery="Day" archiveNumbering="Date" maxArchiveFiles="31" concurrentWrites="true" />
</targets>
<rules>
<logger name="log" minlevel="Trace" writeTo="console, logfile, flowdatabase" />
</rules>
</nlog>