logbak日志的配置

logback-spring.xml




    logback

    
    

    
    
    
    

    
    

    
    

    
    
        
        
            debug
        
        
            ${CONSOLE_PATTERN}
            
            UTF-8
        
    

    
    
        
            ${PATTERN}
            UTF-8
        
        
        
            debug
            ACCEPT
            DENY
        
    

    
    
        
            ${PATTERN}
            UTF-8
        
        
        
            warn
            ACCEPT
            DENY
        
    


    
    
        
        ${LOG_PATH}/user_info.log
        
            ${PATTERN}
            UTF-8
        
        
        
            
            ${LOG_PATH}/user_info_%d{yyyy-MM-dd}.%i.log
            
                100MB
            
            
            30
        
        
        
            debug
            ACCEPT
        
    


    
    
        
        ${LOG_PATH}/user_error.log
        
            ${PATTERN}
            UTF-8
        
        
        
            
            ${LOG_PATH}/user_error_%d{yyyy-MM-dd}.%i.log
            
                100MB
            
            
            30
        
        
        
            error
            ACCEPT
            DENY
        
    

    
        
        
        
        
        
    

 

你可能感兴趣的:(logbak日志的配置)