天津投入产出系统后端
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.
 
 
 
 
 
 

70 lines
3.0 KiB

<?xml version="1.0"?>
<configuration>
<configSections>
<!--日志组件配置-->
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
</configSections>
<appSettings>
<add key="ServerIP" value="10.114.63.92"/>
<!--<add key="ServerIP" value="10.114.48.210"/>-->
<add key="Port" value="51236"/>
<add key="Piece" value="39"/>
</appSettings>
<connectionStrings>
<!--主数据库连接-->
<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&quot;.txt&quot;" />
<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&quot;.txt&quot;" />
<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&quot;.txt&quot;" />
<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>