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.
69 lines
3.8 KiB
69 lines
3.8 KiB
4 years ago
|
<?xml version="1.0"?>
|
||
|
<configuration>
|
||
|
<configSections>
|
||
|
<!--日志处理组件-->
|
||
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
|
||
|
</configSections>
|
||
|
<connectionStrings>
|
||
|
<!--主数据库连接-->
|
||
|
<!--<add name="maindb" connectionString="Data Source=YANYG-PC\YANYG;Initial Catalog=B9DB;User Id=sa;Password=db2012;" providerName="System.Data.SqlClient"/>-->
|
||
|
<add name="maindb" connectionString="Data Source=192.168.0.133\SQL2008R2;Initial Catalog=QDMES;User Id=B9_se;Password=qm;" providerName="System.Data.SqlClient"/>
|
||
|
<!--<add name="maindbInsert" connectionString="Data Source=10.114.48.30;Initial Catalog=scJCIFisB8YB;Persist Security Info=True;User ID=X89MES;Password=x89mes;" providerName="System.Data.SqlClient"/>-->
|
||
|
<!--<add name="maindbSelect" connectionString="Data Source=10.114.50.240;Initial Catalog=B9MES_TEST;Persist Security Info=True;User ID=b9mes;Password=MESmes123;" providerName="System.Data.SqlClient"/>-->
|
||
|
<add name="maindbSelect" connectionString="Data Source=192.168.0.133\SQL2008R2;Initial Catalog=B9TEST;Persist Security Info=True;User ID=B9_se;Password=qm;" providerName="System.Data.SqlClient"/>
|
||
|
<!--<add name="maindb" connectionString="Data Source=10.114.48.123;Initial Catalog=AUDIB9MES;User Id=b9mes;Password=MESmes123;" providerName="System.Data.SqlClient"/>-->
|
||
|
</connectionStrings>
|
||
|
<!--日志组件配置开始-->
|
||
|
<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>
|