Log4Net and .NET 4.0

后端 未结 7 2076
無奈伤痛
無奈伤痛 2020-12-15 16:38

There have not been any log4net release for some time. This has not presented any problems with 3.5, but what about .NET 4? Has anyone heard any rumblings about a release to

7条回答
  •  失恋的感觉
    2020-12-15 17:02

    "With .NET 4. Projects you can still use log4net. You will have to change the target platform to ".NET Framework 4" on the project..."

    Is correct. But you need to put the line

    
       
    
    

    to the bottom of the configuration file (after the log4net setup):

    
    
      
        

    Tested with log4net 1.2.10.0 You need to put the line: [assembly: log4net.Config.XmlConfigurator(Watch = false)] in Assemblyinfo.cs (I forgot that)

提交回复
热议问题