-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathApp.config
More file actions
30 lines (28 loc) · 1.16 KB
/
App.config
File metadata and controls
30 lines (28 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
</configSections>
<nlog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
<variable name="logDirectory" value="${basedir}/logs/${processname}" />
<targets async="false">
<target name="c" xsi:type="Console" />
<target name="f" xsi:type="File" fileName="${logDirectory}/${shortdate}.log" />
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="c" />
<logger name="*" minlevel="Debug" writeTo="f" />
</rules>
</nlog>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<clear />
<add key="ConfigPath" value="test\订阅全部期货" />
<!-- 与接收器操作的是同一文件 -->
<add key="InstrumentInfoListFileName" value="InstrumentInfoList.json" />
<!-- 交易部分,读取连接信息进行登录,然后将下载到的合约列表写入文件 -->
<add key="ConnectionConfigFileName" value="TdConnectionConfig.json" />
</appSettings>
</configuration>