logback 日志通用配置文件




    
    
    
    

    
    
        
        
            %d{yyyy-MM-dd HH:mm:ss:SSS} [%thread] %-5level %logger{50}\(%F %L\) -%msg%n 
        
    

    
    
    
        
        
            DEBUG
            ACCEPT
            ACCEPT
        
        
        
            ${LOG_HOME}/debug/debugLog-%d{yyyy-MM-dd}.%i.txt
            10MB
            ${maxHistory}
            20GB
        
        
            %d{yyyy-MM-dd HH:mm:ss:SSS} [%thread] %-5level %logger{50}\(%F %L\) -%msg%n 
        
    

    
    
        
        
            INFO
            ACCEPT
            DENY
        
        
            ${LOG_HOME}/info/infoLog-%d{yyyy-MM-dd}.%i.txt
            10MB
            ${maxHistory}
            20GB
        
        
            %d{yyyy-MM-dd HH:mm:ss:SSS} [%thread] %-5level %logger{50}\(%F %L\) -%msg%n 
        
    

    
    
        
        
            WARN
            ACCEPT
            DENY
        
        
            ${LOG_HOME}/warn/warnLog-%d{yyyy-MM-dd}.%i.txt
            10MB
            ${maxHistory}
            20GB
        
        
            %d{yyyy-MM-dd HH:mm:ss:SSS} [%thread] %-5level %logger{50}\(%F %L\) -%msg%n 
        
    

    
    
        
        
            ERROR
            ACCEPT
            DENY
        
        
            ${LOG_HOME}/error/errorLog-%d{yyyy-MM-dd}.%i.txt
            10MB
            ${maxHistory}
            20GB
        
        
            %d{yyyy-MM-dd HH:mm:ss:SSS} [%thread] %-5level %logger{50}\(%F %L\) -%msg%n 
        
    

    
    
    
    
    
    
    
    
    
    

    
    
        
        
        
        
        
    

你可能感兴趣的:(logback 日志通用配置文件)