Настройка AGDataLoader
Файл конфигурации AGDataLoader.exe.config
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="settings" type="AGDataLoader.ConfigSection, AGDataLoader"/>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
</configSections>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="default" xsi:type="File" fileName="Logs\${date:format=yyyyMMdd}.log" layout="${date:format=HH\:mm\:ss} ${uppercase:upperCase=True:inner=${level}} ${message}"/>
<target name="dispatcherTargetV3" xsi:type="File" fileName="Logs\${date:format=yyyyMMdd}_Dispatcher3.log" layout="${date:format=HH\:mm\:ss} ${uppercase:upperCase=True:inner=${level}} ${message}"/>
<target name="dispatcherTargetV4" xsi:type="File" fileName="Logs\${date:format=yyyyMMdd}_Dispatcher4.log" layout="${date:format=HH\:mm\:ss} ${uppercase:upperCase=True:inner=${level}} ${message}"/>
<target name="dispatcherHttpTarget" xsi:type="File" fileName="Logs\${date:format=yyyyMMdd}_DispatcherHttp.log" layout="${date:format=HH\:mm\:ss} ${uppercase:upperCase=True:inner=${level}} ${message}"/>
<target name="console" xsi:type="ColoredConsole" layout="${date:format=HH\:mm\:ss} ${uppercase:upperCase=True:inner=${level}} ${message}"/>
</targets>
<rules>
<logger name="default" minLevel="Info" appendTo="default"/>
<logger name="dispatcher-v3" minLevel="Info" appendTo="dispatcherTargetV3"/>
<logger name="dispatcher-v4" minLevel="Info" appendTo="dispatcherTargetV4"/>
<logger name="http-dispatcher" minLevel="Info" appendTo="dispatcherHttpTarget"/>
<logger name="*" minLevel="Info" appendTo="console"/>
</rules>
</nlog>
<settings
data-directory="d:\test.data"
dbf-directory="d:\test"
batch-size="400"
thread-count="4"
data-last-weeks="28"
files-directory="~\files"
file-sync-period="10"
files-exclude="*.txt;*.ini"
file-size-limit="0"
files-in-one-directory="true"
files-overwrite="true"
dbf-subdir-exclude="off"
dispatcher-port="0"
http-dispatcher-port="0"
logs-per-server="true"
dispatcher-port-v4="0"
users-directory-v4="D:\AGServer4\Users"
dbf-directory-v4="D:\AGServer4\DBF"
dispatcher-rule-filename="rules.xml"
hash="false"/>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
</configuration>
<a id="data-loader">data-loader</a> - param 1