logback日志配置








    

    logback
    
    

    
    
    
    
    
    
    


    
    
        
        
            DEBUG
        
        
            ${CONSOLE_LOG_PATTERN}
            
            UTF-8
        
    


    

    
    
        
        ${log.path}/all.log
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
            UTF-8 
        
        
        
            
            ${log.path}/all/%d{yyyy-MM-dd}.%i.log
            
                50MB
            
            
            15
        
        
        
            debug
        
    
    
        
        1024
        true
        
        
            debug
        
    

    
    
        
        ${log.path}/normal.log
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
            UTF-8
        
        
        
            
            ${log.path}/normal/%d{yyyy-MM-dd}.%i.log
            
                50MB
            
            
            15
        
        
        
            info
        
    
    
        
        
            info
        
    


    
    
        
        ${log.path}/error.log
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
            UTF-8 
        
        
        
            ${log.path}/error/%d{yyyy-MM-dd}.%i.log
            
                50MB
            
            
            15
        
        
        
            ERROR
        
    
    
        
        
            ERROR
        
    

    
    
        
        ${log.path}/performance.log
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
            UTF-8
        
        
        
            
            ${log.path}/performance/%d{yyyy-MM-dd}.%i.log
            
                50MB
            
            
            15
        
        
        
        
            info
        
    
    
        
        
            info
        
    


    
    
    
        
        
    

    
        
        
    

    
    
    
    

    
    
        
        
        
        
    

 

你可能感兴趣的:(log)