logback.xml配置详解

日志打印文件配置




    
        UTF-8
        
            [%d{HH:mm:ss.SSS}][%p][%c{40}][%t] %m%n
        
        
            DEBUG
        
    


    
        
        /developer/apache-tomcat-7.0.73/logs/mmall.log
        
            /developer/apache-tomcat-7.0.73/logs/mmall.log.%d{yyyy-MM-dd}.gz
            true
            10
        
        
            [%d{HH:mm:ss.SSS}][%p][%c{40}][%t] %m%n
        
    


    
        
        /developer/apache-tomcat-7.0.73/logs/error.log
        
            /devsoft/apache-tomcat-7.0.73/logs/error.log.%d{yyyy-MM-dd}.gz
            
            true
            10
        
        
            [%d{HH:mm:ss.SSS}][%p][%c{40}][%t] %m%n
        
        
            ERROR
            ACCEPT
            DENY
        
    

    
        
        
    



    

    

    
        
    

    
        
    
    
        
    

    
        
    


    
        
        
    


你可能感兴趣的:(logback.xml配置详解)