logback-spring.xml 日志配置文件



    
    
    
    
    
    
    
    
        
            
            %date{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %boldCyan([%thread])
                %boldGreen(%logger{50}) -
                %msg%n
            
            UTF-8
        
    
    
    
        
            
            ${logPath}/${appName}/info.%d{yyyy-MM-dd}.log
            
            >${maxHistory}
        
        
            
            
                %date{yyyy-MM-dd HH:mm:ss} %boldBlue(%-5level) %boldCyan([%thread]) %boldGreen(%logger{50}) -
                %msg%n
            
            UTF-8
        
        
        
            ${maxFileSize}
        

        
            
            INFO
            ACCEPT
            DENY
        
    

    
    
        
            
            ${logPath}/${appName}/warn.%d{yyyy-MM-dd}.log
            
            >${maxHistory}
        
        
            
            
                %date{yyyy-MM-dd HH:mm:ss} %boldYellow(%-5level) %boldCyan([%thread]) %boldGreen(%logger{50}) -
                %msg%n
            
            UTF-8
        
        
        
            ${maxFileSize}
        

        
            
            WARN
            ACCEPT
            DENY
        
    

    
    
        
            
            ${logPath}/${appName}/error.%d{yyyy-MM-dd}.log
            
            ${maxHistory}
        
        
            
            
                %date{yyyy-MM-dd HH:mm:ss} %boldRed(%-5level) %boldCyan([%thread]) %boldGreen(%logger{50}) -
                %msg%n
            
            UTF-8
        
        
            
            ERROR
            ACCEPT
            DENY
        
    
    
    
        
        
        
        
    

你可能感兴趣的:(Java)