当我配置log4net时,它会发生:
the reference schema contains error from current document.
The foundation connect has been closed,recieving error!
这段代码:
<log4net xsi:noNamespaceSchemaLocation="http://csharptest.net/downloads/schema/log4net.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<appender name="InfoFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="D:/a.txt" />
<appendToFile value="true" />
<param name="DatePattern" value="yyyyMMdd".txt"" />
<rollingStyle value="Date" />
<maxSizeRollBackups value="100" />
<datePattern value="yyyy-MM-dd'.log'"/>
<maximumFileSize value="1024KB" />
<staticLogFileName value="false" />
<encoding value="utf-8"/>
<filter type="log4net.Filter.LevelRangeFilter"> <log4net xsi:noNamespaceSchemaLocation="http://csharptest.net/downloads/schema/log4net.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<appender name="InfoFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="D:/a.txt" />
<appendToFile value="true" />
<param name="DatePattern" value="yyyyMMdd".txt"" />
<rollingStyle value="Date" />
<maxSizeRollBackups value="100" />
<datePattern value="yyyy-MM-dd'.log'"/>
<maximumFileSize value="1024KB" />
<staticLogFileName value="false" />
<encoding value="utf-8"/>
<filter type="log4net.Filter.LevelRangeFilter">
xsi中的:noNamespaceSchemaLocation =“http://csharptest.net/downloads/schema/log4net.xsd”,出了什么问题?