|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
<configuration>
|
|
|
|
|
<configSections>
|
|
|
|
|
<section name="log4net" type="System.Configuration.IgnoreSectionHandler"/>
|
|
|
|
|
</configSections>
|
|
|
|
|
<appSettings>
|
|
|
|
|
<!--控件属性列表文件-->
|
|
|
|
|
<add key="componentsPropertyFile" value="\data\ComponentProperty.xml"/>
|
|
|
|
|
<!--控件动画列表文件-->
|
|
|
|
|
<add key="componentsActionFile" value="\data\ComponentAction.xml"/>
|
|
|
|
|
<!--控件事件列表文件-->
|
|
|
|
|
<add key="componentsEventFile" value="\data\ComponentEvent.xml"/>
|
|
|
|
|
<!--自定义插件目录-->
|
|
|
|
|
<add key="MesnacPlugInPath" value="Data\MesnacPlugIn"/>
|
|
|
|
|
<!--组态工程目录-->
|
|
|
|
|
<add key="MCProjectPath" value="Data\MCProject"/>
|
|
|
|
|
<!--系统工程配置目录-->
|
|
|
|
|
<add key="SysConfigPath" value="Data\SysConfig"/>
|
|
|
|
|
<add key="ClientSettingsProvider.ServiceUri" value=""/>
|
|
|
|
|
<!--Socket通信最大连接数-->
|
|
|
|
|
<add key="MaxConnection" value="50"/>
|
|
|
|
|
<!--Socket通信侦听的IP地址-->
|
|
|
|
|
<add key="ListenServerIP" value="192.168.1.11"/>
|
|
|
|
|
<!--Socket通信侦听的端口号-->
|
|
|
|
|
<add key="Port" value="1000"/>
|
|
|
|
|
<!--机台号-->
|
|
|
|
|
<add key="EquipCode" value="01"/>
|
|
|
|
|
<!--设备时钟类型,值包括Thread或Timer-->
|
|
|
|
|
<add key="BASE_EQUIP_CLOCKTYPE" value="Thread"/>
|
|
|
|
|
<!-- 是否加载数据源树 -->
|
|
|
|
|
<add key="IsLoadDataSourceTree" value="false"/>
|
|
|
|
|
<!--是否开启保存回放数据-->
|
|
|
|
|
<add key="IsSaveBackViewData" value="false"/>
|
|
|
|
|
<!--时序数据库InfluxDb的根目录-->
|
|
|
|
|
<add key="InfluxDb_Path" value="D:\influxdb-1.4.3-1"/>
|
|
|
|
|
<!--时序数据库服务器的访问Uri-->
|
|
|
|
|
<add key="InfluxDb_EndPointUri" value="http://localhost:8086"/>
|
|
|
|
|
<!--时序数据库服务器用户名-->
|
|
|
|
|
<add key="InfluxDb_UserName" value="root"/>
|
|
|
|
|
<!--时序数据服务器密码-->
|
|
|
|
|
<add key="InfluxDb_Password" value="root"/>
|
|
|
|
|
<!--回放数据保留的天数-->
|
|
|
|
|
<add key="BackViewDataSaveDays" value="30"/>
|
|
|
|
|
</appSettings>
|
|
|
|
|
<log4net>
|
|
|
|
|
<appender name="ColoredConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">
|
|
|
|
|
<mapping>
|
|
|
|
|
<level value="FATAL"/>
|
|
|
|
|
<foreColor value="Red, HighIntensity"/>
|
|
|
|
|
</mapping>
|
|
|
|
|
<mapping>
|
|
|
|
|
<level value="ERROR"/>
|
|
|
|
|
<foreColor value="Red"/>
|
|
|
|
|
</mapping>
|
|
|
|
|
<mapping>
|
|
|
|
|
<level value="WARN"/>
|
|
|
|
|
<foreColor value="Yellow"/>
|
|
|
|
|
</mapping>
|
|
|
|
|
<mapping>
|
|
|
|
|
<level value="INFO"/>
|
|
|
|
|
<foreColor value="White"/>
|
|
|
|
|
</mapping>
|
|
|
|
|
<mapping>
|
|
|
|
|
<level value="DEBUG"/>
|
|
|
|
|
<foreColor value="Green"/>
|
|
|
|
|
</mapping>
|
|
|
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
|
|
|
<conversionPattern value="%date [%thread] %-5level- %c - %message%newline"/>
|
|
|
|
|
</layout>
|
|
|
|
|
</appender>
|
|
|
|
|
<appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
|
|
|
|
|
<file value="log\"/>
|
|
|
|
|
<appendToFile value="true"/>
|
|
|
|
|
<rollingStyle value="Date"/>
|
|
|
|
|
<datePattern value="yyyyMMdd".txt""/>
|
|
|
|
|
<StaticLogFileName value="false"/>
|
|
|
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
|
|
|
<conversionPattern value="%date [%thread] %-5level- %c - %message%newline"/>
|
|
|
|
|
</layout>
|
|
|
|
|
<!--多线程写入支持-->
|
|
|
|
|
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
|
|
|
|
|
</appender>
|
|
|
|
|
<root>
|
|
|
|
|
<level value="DEBUG"/>
|
|
|
|
|
<appender-ref ref="ColoredConsoleAppender"/>
|
|
|
|
|
<!--<appender-ref ref="FileAppender"/>-->
|
|
|
|
|
</root>
|
|
|
|
|
</log4net>
|
|
|
|
|
<startup>
|
|
|
|
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
|
|
|
|
|
</startup>
|
|
|
|
|
<system.web>
|
|
|
|
|
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
|
|
|
|
<providers>
|
|
|
|
|
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
|
|
|
|
|
</providers>
|
|
|
|
|
</membership>
|
|
|
|
|
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
|
|
|
|
<providers>
|
|
|
|
|
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
|
|
|
|
|
</providers>
|
|
|
|
|
</roleManager>
|
|
|
|
|
</system.web>
|
|
|
|
|
</configuration>
|