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.
82 lines
4.1 KiB
82 lines
4.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<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=B9DB;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"/>-->
|
|
<!--<add name="maindb" connectionString="Data Source=119.3.213.202,13315;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=ChangkeTec@2020;" providerName="System.Data.SqlClient" />-->
|
|
|
|
<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password2018;" 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>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.112.3.0" newVersion="4.112.3.0" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
</configuration>
|
|
|