log4net not working

后端 未结 13 1705
轮回少年
轮回少年 2020-12-07 08:04

Hey I have this configuration in my web.config


    

        
13条回答
  •  情书的邮戳
    2020-12-07 08:40

    One gotcha for this type of thing is to make sure to add the XmlConfigurator attribute to the assembly by placing the following line in your AssemblyInfo.cs:

    [assembly: log4net.Config.XmlConfigurator]
    

    Otherwise log4net never activates.

提交回复
热议问题