Logback配置解析





    
    

        
        
            [%d{yyyy-MM-dd HH:mm:ss.SSS}] [%5level] [%thread] %logger{0} %msg%n
            UTF-8
        
    

    
    
        debug.log
        
        true
        
            
            DEBUG
            ACCEPT
            DENY
        
        
            [%d{yyyy-MM-dd HH:mm:ss.SSS}] [%5level] [%thread] %logger{0} %msg%n
            UTF-8
        
    

    
    
        info.log

        
        
            INFO
        

        
            [%d{yyyy-MM-dd HH:mm:ss.SSS}] [%5level] [%thread] %logger{0} %msg%n
            UTF-8
        

        
            
            info.%d{yyyy-MM-dd}.log
            30
            
                100MB
            
        
    

    
    
        
        
        
            
            
                
                
            
            
            
        

        
            
            
        
    

    
        error.log

        
            [%d{yyyy-MM-dd HH:mm:ss.SSS}] [%5level] [%thread] %logger{0} %msg%n
            UTF-8
        

        
        
            error.%d{yyyy-MM}(%i).log.zip
            1
            3
            
                100MB
            
            30
        
    

    
    
        
        0
        
        512
        
        
    

    
    

    
    
        
        
        
        
        

        
    


    
    
        
        
        
        
        
    

Logback启动日志

21:27:53,250 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
21:27:53,250 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
21:27:53,250 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/D:/Workspace5.0/common-log/target/classes/logback.xml]
21:27:53,390 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
21:27:53,396 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeFilter scanning period to 1 minutes
21:27:53,396 |-INFO in ReconfigureOnChangeFilter{invocationCounter=0} - Will scan for changes in [[D:\Workspace5.0\common-log\target\classes\logback.xml]] every 60 seconds. 
21:27:53,396 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Adding ReconfigureOnChangeFilter as a turbo filter
21:27:53,407 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
21:27:53,414 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
21:27:53,450 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
21:27:53,555 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
21:27:53,558 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [DEBUG]
21:27:53,583 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
21:27:53,585 |-INFO in ch.qos.logback.core.FileAppender[DEBUG] - File property is set to [debug.log]
21:27:53,603 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
21:27:53,604 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [INFO]
21:27:53,618 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
21:27:53,680 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
21:27:53,683 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern info.%d{yyyy-MM-dd}.log for the active file
21:27:53,687 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6ecbd0a2 - The date pattern is 'yyyy-MM-dd' from file name pattern 'info.%d{yyyy-MM-dd}.log'.
21:27:53,687 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6ecbd0a2 - Roll-over at midnight.
21:27:53,692 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6ecbd0a2 - Setting initial period to Wed Dec 09 18:10:42 CST 2015
21:27:53,696 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[INFO] - Active log file name: info.log
21:27:53,696 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[INFO] - File property is set to [info.log]
21:27:53,696 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
21:27:53,696 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ERROR]
21:27:53,697 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
21:27:53,705 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@101:111 - no applicable action for [timeBasedFileNamingAndTriggeringPolicy], current ElementPath  is [[configuration][appender][rollingPolicy][timeBasedFileNamingAndTriggeringPolicy]]
21:27:53,705 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@102:30 - no applicable action for [maxFileSize], current ElementPath  is [[configuration][appender][rollingPolicy][timeBasedFileNamingAndTriggeringPolicy][maxFileSize]]
21:27:53,705 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@104:25 - no applicable action for [maxHistory], current ElementPath  is [[configuration][appender][rollingPolicy][maxHistory]]
21:27:53,706 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@6ee7482 - Will use zip compression
21:27:53,708 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[ERROR] - No TriggeringPolicy was set for the RollingFileAppender named ERROR
21:27:53,708 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[ERROR] - For more information, please visit http://logback.qos.ch/codes.html#rfa_no_tp
21:27:53,708 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.classic.AsyncAppender]
21:27:53,714 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ASYNC]
21:27:53,715 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ERROR] to ch.qos.logback.classic.AsyncAppender[ASYNC]
21:27:53,715 |-INFO in ch.qos.logback.classic.AsyncAppender[ASYNC] - Attaching appender named [ERROR] to AsyncAppender.
21:27:53,715 |-INFO in ch.qos.logback.classic.AsyncAppender[ASYNC] - Setting discardingThreshold to 0
21:27:53,715 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.weizhi.common.LogMain] to INFO
21:27:53,715 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.weizhi.common.LogMain] to false
21:27:53,715 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[com.weizhi.common.LogMain]
21:27:53,715 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ASYNC] to Logger[com.weizhi.common.LogMain]
21:27:53,715 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
21:27:53,715 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
21:27:53,715 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ASYNC] to Logger[ROOT]
21:27:53,715 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
21:27:53,730 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@1123065c - Registering current configuration as safe fallback point

你可能感兴趣的:(Java,开发,logback)