1

ReflectSoftware のログ情報を含めるように app.config を変更すると、Ninjatrader がクラッシュしました。私が正しく設定しなかった場所を指摘できますか?

?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.net>
        <defaultProxy>
            <proxy usesystemdefault="False"/>
        </defaultProxy>
    </system.net>
    <configSections>         
   <section name="insightSettings" type="ReflectSoftware.Insight.ConfigurationHandler,ReflectSoftware.Insight"/>
</configSections> 
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <!--
    In order to recieve location information, you must ensure the layout has the parameter ${callsite} and all 
    its properties set accordantly.
     -->
    <extensions>
        <add assembly="ReflectSoftware.Insight.Extensions.NLog"/>
    </extensions>
    <targets>
      <target name="ReflectInsight"
              xsi:type="ReflectInsight"
              instanceName="nlogInstance1"
              displayLevel="true"
              displayLocation="true"
              layout="${callsite:className=true:fileName=true:includeSourcePath=true:methodName=true}" />
    </targets>
    <rules>
        <logger name="*" minlevel="Trace" writeTo="ReflectInsight" />        
    </rules>
</nlog>
</configuration>
4

1 に答える 1

2

構成セクションの後に xml フラグメントを移動することで修正されました

于 2013-01-22T20:43:40.280 に答える