log4j2 xml configuration - Log to file and console (with different levels)

前端 未结 5 1018
情深已故
情深已故 2020-12-24 10:58

I want to do two things:

  1. Log to console with a certain log-level
  2. Log to file with another log-level

Console logging seems to work just

5条回答
  •  生来不讨喜
    2020-12-24 11:42

    I figured it out! The tag shouldn't be used in this case, see Gaurang Patel's answer for details.

    
    
      
        
          
        
    
        
            
                     
      
    
           
        
          
          
            
      
    
    

提交回复
热议问题