Log4Net “Could not find schema information” messages

后端 未结 13 889
故里飘歌
故里飘歌 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:44

    Actually you don't need to stick to the .xml extension. You can specify any other extension in the ConfigFileExtension attribute:

    [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", ConfigFileExtension=".config", Watch = true)]
    

提交回复
热议问题