Logback配置

logback.xml




    
    
    
    
    
      
    
        
            
                
                
                %d{HH:mm:ss.SSS} %-5level %replace(%caller{1}){'(\bCaller.+?(?=\())|\r|\n|\s*|\t', ''} - %msg  [%thread] %n 
            
        
    
    
    
    
        
        
            DEBUG
            ACCEPT
            DENY
            
        
        
        
            
            ${logDir}/%d{yyyy-MM-dd}/debug-log.log
            ${maxHistory}
        
        
            %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
        
    
    
    
        
        
            
            WARN
        
        
            ${logDir}/%d{yyyy-MM-dd}/warn-log.log
            ${maxHistory}
        
        
            %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
        
    
    
    
    
    
    
    
        
        
        
    


你可能感兴趣的:(Logback配置)