logback日志输出设置模板






    
    

    
    

    
    
    
    
    
    
    

    
    
        
            ${CONSOLE_LOG_PATTERN}
            UTF-8 
        
        
        

            debug
        
    

    
    
        
        ${LOG_PATH}/log_debug.log
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
            UTF-8 
        
        
        
            
            ${LOG_PATH}/debug/log-debug-%d{yyyy-MM-dd}.%i.log
            
            
                500MB
            
            
            30
        
        
        
            debug
            ACCEPT
            DENY
        
    

    
    
        
        ${LOG_PATH}/log_info.log
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
            UTF-8 
        
        
        
            
            ${LOG_PATH}/info/log-info-%d{yyyy-MM-dd}.%i.log
            
            
                500MB
            
            
            30
        
        
        
            info
            ACCEPT
            DENY
        
    

    
    
        
        ${LOG_PATH}/log_warn.log
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
            UTF-8 
        
        
        
            
            ${LOG_PATH}/warn/log-warn-%d{yyyy-MM-dd}.%i.log
            
            
                500MB
            
            
            30
        
        
        
            warn
            ACCEPT
            DENY
        
    

    
    
        
        ${LOG_PATH}/log_error.log
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
            UTF-8 
        
        
        
            
            ${LOG_PATH}/error/log-error-%d{yyyy-MM-dd}.%i.log
            
            
                500MB
            
            
            30
        
        
        
            error
            ACCEPT
            DENY
        
    


    
    
    

    
    
        
            
            
            
            
            
        
    

    
    
        
            
            
            
            
        
    

    
    
        
            
            
            
            
        
    


你可能感兴趣的:(logback)