How to track down log4net problems

后端 未结 6 1910
生来不讨喜
生来不讨喜 2020-11-22 05:19

I use log4net all the time, but one thing I\'ve never figured out is how to tell what\'s going on on the inside. For example, I\'ve got a console appender and a database app

6条回答
  •  旧时难觅i
    2020-11-22 05:48

    First you have to set this value on the application configuration file:

    
       
          
       
    
    

    Then, to determine the file in which you want to save the output you can add the following code in the same .config file:

    
    ...
    
    
        
            
                
            
        
    
    
    ...
    
    

    You can find a more detailed explanation under 'How do I enable log4net internal debugging?' in the log4net FAQ page.

提交回复
热议问题