How to write different logs in different files with log4j2 (MDC in xml)?

前端 未结 1 750
借酒劲吻你
借酒劲吻你 2020-12-03 20:01

Now I\'m using structure like this: Appender:



        
1条回答
  •  生来不讨喜
    2020-12-03 20:48

    Take a look at RoutingAppender. Maybe this can get you started:

    
    
      
        
          
            
              
                
                  %d{ISO8601} [%t] %p %c %L - %m%n
                
                
                  
                  
                
              
            
          
        
      
    
      
        
          
        
      
    
    

    0 讨论(0)
提交回复
热议问题