Log4Net “Could not find schema information” messages

后端 未结 13 800
故里飘歌
故里飘歌 2020-12-01 04:17

I decided to use log4net as a logger for a new webservice project. Everything is working fine, but I get a lot of messages like the one below, for every log4net tag I am usi

相关标签:
13条回答
  • 2020-12-01 04:59

    You can bind in a schema to the log4net element. There are a few floating around, most do not fully provide for the various options available. I created the following xsd to provide as much verification as possible: http://csharptest.net/downloads/schema/log4net.xsd

    You can bind it into the xml easily by modifying the log4net element:

    <log4net 
         xsi:noNamespaceSchemaLocation="http://csharptest.net/downloads/schema/log4net.xsd" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    
    0 讨论(0)
提交回复
热议问题