How to configure log4net to print to console in debug mode

后端 未结 2 1057
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 00:40

Is there a way to configure log4net to print logs both to console and to files during debug?

I am trying to find a way to debug my software efficiently by observing

2条回答
  •  臣服心动
    2020-12-24 01:13

    You need to have both appenders declared in your section.

    Configure your log4net like this:

    
        
            
                
            
        
    
        
            
            
            
            
            
            
            
                
            
        
    
        
            
            
                    
        
    
    

提交回复
热议问题