You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
4.3 KiB
90 lines
4.3 KiB
<?xml version="1.0"?>
|
|
<configuration>
|
|
<configSections>
|
|
<!--日志处理组件-->
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
|
|
</configSections>
|
|
<connectionStrings>
|
|
<!--主数据库连接-->
|
|
<add name="maindb" connectionString="Data Source=USER-20180104HU;Initial Catalog=CD_MES;User Id=sa;Password=qm;" providerName="System.Data.SqlClient" />
|
|
</connectionStrings>
|
|
<appSettings>
|
|
<add key="AppDALPath" value="DCS.SQLServer" />
|
|
<!--访问网络用户-->
|
|
<add key="DCSNetUser" value="cdfjc" />
|
|
<!--访问网络用户密码-->
|
|
<add key="DCSNetPwd" value="Spring99" />
|
|
<!--访问网络服务器文件存储地址-->
|
|
<add key="DCSFilesPath" value="\\10.111.144.98\Test" />
|
|
<!--激光切设备抓取文件存放的本地目录-->
|
|
<add key="LOCAL_FILEPATH" value="D:\FileLoad" />
|
|
<!--系统写日志文件路径,不包含日志文件名。日志文件名会更具日期自动创建-->
|
|
<add key="LOGFILEPATH" value="C:\logfile\" />
|
|
<!--激光切设备类型的配置,要和设备类别表T_DCS_EQUIPMENT_TYPE字段EQUIPMENT_TYPE_CODE设置一致-->
|
|
<add key="DCS_ET_JENOPTIK_TYPE" value="JIGUANGQIE" />
|
|
<!--设置设备监控频率,默认为1分钟-->
|
|
<add key="MonitorLever" value="1" />
|
|
<!--激光切设备解析文件的频率,单位为分钟,默认值为30分钟解析一次-->
|
|
<add key="jgq_frequency" value="30" />
|
|
<!--客户端网络预警的频率,单位为分钟,默认值为2分钟一次-->
|
|
<add key="cwaring_frequency" value="1" />
|
|
<!--设置KepGroup_DataChange事件更新频率,单位是秒,默认当前设置的是3秒更新一次数据-->
|
|
<add key="UpdateRate" value="1000" />
|
|
<!--设置成都激光切设备IP地址-->
|
|
<add key="CDEquipment_IP" value="10.111.144.98" />
|
|
</appSettings>
|
|
<!--日志组件配置开始-->
|
|
<log4net>
|
|
<logger name="loginfo">
|
|
<level value="INFO" />
|
|
<appender-ref ref="InfoAppender" />
|
|
</logger>
|
|
<logger name="debuginfo">
|
|
<level value="DEBUG" />
|
|
<appender-ref ref="DebugAppender" />
|
|
</logger>
|
|
<logger name="errorinfo">
|
|
<level value="ERROR" />
|
|
<appender-ref ref="ErrorAppender" />
|
|
</logger>
|
|
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
|
|
<param name="File" value="Log\\Info\\" />
|
|
<param name="AppendToFile" value="true" />
|
|
<param name="MaxFileSize" value="10240" />
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
<param name="StaticLogFileName" value="false" />
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
<param name="RollingStyle" value="Date" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m" />
|
|
</layout>
|
|
</appender>
|
|
<appender name="DebugAppender" type="log4net.Appender.RollingFileAppender">
|
|
<param name="File" value="Log\\Debug\\" />
|
|
<param name="AppendToFile" value="true" />
|
|
<param name="MaxFileSize" value="10240" />
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
<param name="StaticLogFileName" value="false" />
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
<param name="RollingStyle" value="Date" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m" />
|
|
</layout>
|
|
</appender>
|
|
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
|
|
<param name="File" value="Log\\Error\\" />
|
|
<param name="AppendToFile" value="true" />
|
|
<param name="MaxFileSize" value="10240" />
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
<param name="StaticLogFileName" value="false" />
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
<param name="RollingStyle" value="Date" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m " />
|
|
</layout>
|
|
</appender>
|
|
</log4net>
|
|
<startup>
|
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
|
|
</startup>
|
|
</configuration>
|