Configure Log4net to write to multiple files

前端 未结 5 1583
盖世英雄少女心
盖世英雄少女心 2020-11-27 10:07

I\'d like to write log to 2 different log files from the same process.

is that possible thing to do using log4net?

I\'ll need to write separate messages to

5条回答
  •  我在风中等你
    2020-11-27 10:12

    I wanted to log all messages to root logger, and to have a separate log with errors, here is how it can be done:

    
        
            
            
            
                
            
        
    
        
            
            
            
                
            
            
                
                
            
        
    
        
            
            
            
        
    
    

    Notice the use of filter element.

提交回复
热议问题