logback-spring.xml模板



    
    
    
    
    
    
    
    
    

    
    

    
    

    
    
        
            
                
                
                ${CONSOLE_LOG_PATTERN}
            
        
    

    
    
    
        
        
        
            
            ERROR
            
            ACCEPT
            
            DENY
        
        
        
            
            
                ${log.path}/error/%d{yyyy-MM}/%d{yyyy-MM-dd}-error.log
            
            
            ${maxHistory}
        
        
            
                
                %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
            
        
    

    
    
        
        
        
            
            WARN
            
            ACCEPT
            
            DENY
        
        
            
            ${log.path}/warn/%d{yyyy-MM}/%d{yyyy-MM-dd}-warn.log
            ${maxHistory}
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
        
    

    
    
        
            INFO
            ACCEPT
            DENY
        
        
            ${log.path}/info/%d{yyyy-MM}/%d{yyyy-MM-dd}-info.log
            ${maxHistory}
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
        
    

    
    
        
            DEBUG
            ACCEPT
            DENY
        
        
            ${log.path}/debug/%d{yyyy-MM}/%d{yyyy-MM-dd}-debug.log
            ${maxHistory}
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
        
    

    
    
        
            TRACE
            ACCEPT
            DENY
        
        
            ${log.path}/trace/%d{yyyy-MM}/%d{yyyy-MM-dd}-trace.log
            ${maxHistory}
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
        
    


    

    
    
        
        
        
        
        
        
        
        
        
        
    

 

你可能感兴趣的:(logback-spring.xml模板)