|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
<configuration>
|
|
|
<configSections>
|
|
|
<section name="log4net" type="System.Configuration.IgnoreSectionHandler"/>
|
|
|
</configSections>
|
|
|
<appSettings>
|
|
|
<!--工程向导文件-->
|
|
|
<add key="projectWizardFile" value="\Data\ProjectWizardList.xml"/>
|
|
|
<!--工程模板路径-->
|
|
|
<add key="templatePath" value="\Data\template"/>
|
|
|
<!--布局配置文件-->
|
|
|
<add key="layoutConfigFile" value="\data\Layout.config"/>
|
|
|
<!--工具箱控件库文件-->
|
|
|
<add key="controlLibraryFile" value="\data\SharpDevelopControlLibrary.xml"/>
|
|
|
<!--控件属性列表文件-->
|
|
|
<add key="componentsPropertyFile" value="\data\ComponentProperty.xml"/>
|
|
|
<!--控件动画列表文件-->
|
|
|
<add key="componentsActionFile" value="\data\ComponentAction.xml"/>
|
|
|
<!--控件事件列表文件-->
|
|
|
<add key="componentsEventFile" value="\data\ComponentEvent.xml"/>
|
|
|
<!--仿真数据库配置文件-->
|
|
|
<add key="CfgSimulationDbFile" value="\data\SimulationDbFile.data" />
|
|
|
<!--自定义插件目录-->
|
|
|
<add key="MesnacPlugInPath" value="Data\MesnacPlugIn"/>
|
|
|
<!--Socket通信最大连接数-->
|
|
|
<add key="MaxConnection" value="50"/>
|
|
|
<!--Socket通信侦听的IP地址-->
|
|
|
<add key="ListenServerIP" value="127.0.0.1"/>
|
|
|
<!--Socket通信侦听的端口号-->
|
|
|
<add key="Port" value="6666"/>
|
|
|
<!--设备时钟类型,值包括Thread或Timer-->
|
|
|
<add key="BASE_EQUIP_CLOCKTYPE" value="Thread"/>
|
|
|
<add key="ExcelPath" value="D:/test.xlsx"/>
|
|
|
<add key="ComPort" value="COM5"/>
|
|
|
</appSettings>
|
|
|
<startup useLegacyV2RuntimeActivationPolicy="true">
|
|
|
<supportedRuntime version="v4.0" sku = ".NETFramework,Version=v4.0"/>
|
|
|
<supportedRuntime version="v2.0.50727"/>
|
|
|
</startup>
|
|
|
<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- %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- %message%newline"/>
|
|
|
</layout>
|
|
|
<!--多线程写入支持-->
|
|
|
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
|
|
|
</appender>
|
|
|
<root>
|
|
|
<level value="DEBUG" />
|
|
|
<appender-ref ref="ColoredConsoleAppender" />
|
|
|
<appender-ref ref="FileAppender"/>
|
|
|
</root>
|
|
|
</log4net>
|
|
|
</configuration> |