logback日志详解

  • logback日志详解


    
    myApp1 contextName
    
    

    
    
    
    
    
    
        
        
        
            debug
        

        
        
        
            
            
            
            %-4d [%thread] %highlight%-5level %cyan%logger.%-10method - %message%n
        
    
    
    
    
        
        ${USER_HOME}/myApp1log-${bySecond}.log
        
        
            
            %date %level [%thread] %logger{30} [%file:%line] %msg%n
        
    
    
    
    
        
        
            debug
            ACCEPT
            DENY
        

        
            
            
                %relative%thread%mdc%level%logger%msg
            
        
        ${USER_HOME}/test.html
    

    
    
        
        true
        
        
        
            
            ${USER_HOME}/logFile.%d{yyyy-MM-dd}_%i.log
            
            30
            
            
            
                
                
                10KB
            
        

        
            
            %-4date [%thread] %-5level %logger{35} - %msg%n%ex{full, DISPLAY_EX_EVAL}
        
    

    
    
    
        
        
        
        
    
    
    
        
        
        
    

    
    
    
    
        
    

  • 同时参考:https://www.cnblogs.com/cb0327/p/5759441.html

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