springboot整合logback

logback-spring.xml配置文件如下




    
    
    
    

    
    

    

    
    
        
            ${currentLoggerPattern}
        
    

    
    
    
        
        ${currentLoggerFilePath}/${currentLoggerFileName}.all.log
        
        
            ${currentLoggerPattern}
        
        
        
            
            ${currentLoggerFilePath}/${currentLoggerFileName}.all.%d{yyyy-MM-dd}.log
            5 
        
    

    
    
        
        ${currentLoggerFilePath}/${currentLoggerFileName}.error.log
        
        
            ${currentLoggerPattern}
        
        
        
            
            ${currentLoggerFilePath}/${currentLoggerFileName}.error.%d{yyyy-MM-dd}.log
            
            
            10
        
        
        
            ERROR
            ACCEPT
            DENY
        
    

    
    
        
        
        
    

    
    

springboot整合logback_第1张图片

你可能感兴趣的:(spring,boot,logback,spring)