logback.xml日志文件配置详解

logback.xml日志文件配置,仅供参考,为以后架构备份





    
    
    
    
        
            
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
            UTF-8
        
    
    
    
        
            userId
            unknown
        
        
            
                
                    ${LOG_HOME}/${userId}/${HOSTNAME}_%d{yyyyMMdd}.%i.log
                    
                    7
                    
                        20MB
                    
                
                false
                
                    %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
                    UTF-8
                
            
        
    
    
    
        
            ${LOG_HOME}/error/${HOSTNAME}_%d{yyyy-MM-dd}.%i.log
            
            7
            
                20MB
            
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
            UTF-8
        
        
            
            ERROR
            ACCEPT
            DENY
        
    
    
    
        
            ${LOG_HOME}/interface/${HOSTNAME}_%d{yyyy-MM-dd}.%i.log
            
            7
            
                20MB
            
        
        
            [%date] [%thread] [%level] %msg%n
            UTF-8
        
        
            
            INFO
            ACCEPT
            DENY
        
    
    
    
        
            ${LOG_HOME}/URL/${HOSTNAME}_%d{yyyy-MM-dd}.%i.log
            7
            
            
                20MB
            
        
        
            [%thread] [%date] [%level] %msg%n
            UTF-8
        
        
            
            INFO
            ACCEPT
            DENY
        
    
    
    
        
            SYS_FLAG
            unknown
        
        
            
                
                    ${LOG_HOME}/access/${SYS_FLAG}_%d{yyyyMMdd}.%i.log
                    7
                    
                        20MB
                    
                
                false
                
                    %d{yyyy-MM-dd HH:mm:ss.SSS} %msg%n
                    UTF-8
                
            
        
    
    
    
        
            ${LOG_HOME}/aduit_logs/${HOSTNAME}_%d{yyyyMMdd}.%i.log
            7
            
            
                20MB
            
        
        
            %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
            UTF-8
        
        
            
            INFO
            ACCEPT
            DENY
        
    
    



















    
    
        
        
    
    
        
        
        
        
    

    
    
        
        
    
    
    
        
        
    
    
    
        
        
    
    
        
        
        
    
    
        
        
        
    
    
    
    
    
    
        
        
        
    
    
        
        
        
    
    
        
        
        
    
    
        
        
        
    
    
    
        
        
        
    
    
        
        
        
    
    
    
        
        
        
    
    
        
        
        
    
    
    
        
        
        
    
    
    
        
        
        
    

    
        
        
        
    
    
        
        
        
    
    
        
        
        
    
    
    
        
        
        
    
    
        
        
        
    
    
        
        
        
    
    
        
        
        
    
    
        
        
        
    
    
        
        
        
    
    
    
        
        

    


你可能感兴趣的:(日志)