Log4Net doesn't log or error

后端 未结 3 1469
甜味超标
甜味超标 2021-02-04 17:57

I have been attempting to get log4net logging in my asp.net web application with no success or any noticable errors. I am attempting to use the ADONetAppender appender with the

3条回答
  •  礼貌的吻别
    2021-02-04 18:29

    Internal debugging for log4Net is the way to go as suggested by @Pratik. To write the details into a file do the following:

    Add the following in web.config even if you are using a different config file for log4net.

    
        
    
    
    
    
      
        
      
    
    
    

    Reference

    1. How do I enable log4net internal debugging?
    2. log4net - Appenders not working in IIS7.5

提交回复
热议问题