<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="true">
<contextName>logback</contextName>
<!--<include resource="org/springframework/boot/logging/logback/base.xml" />-->
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<property name="LOG_FILE" value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/spring.log}"/>
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<include resource="org/springframework/boot/logging/logback/file-appender.xml" />
<appender name ="ASYNC" class= "ch.qos.logback.classic.AsyncAppender">
<discardingThreshold >0</discardingThreshold>
<queueSize>512</queueSize>
<appender-ref ref ="FILE"/>
</appender>
<logger name="org.springframework.boot" level="error" />
<logger name="org.hibernate.SQL" level="error" />
<root level="error">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="ASYNC"/>
</root>
<springProfile name="dev,test">
<logger name="org.apache.ibatis" level="debug" />
<logger name="java.sql" level="debug" />
</springProfile>
<springProfile name="prod">
<logger name="org.apache.ibatis" level="error" />
<logger name="java.sql" level="error" />
</springProfile>
</configuration>
logback 自身日志打印結(jié)果:
DEBUG StatusLogger org.slf4j.helpers.Log4jLoggerFactory is not on classpath. Good!
17:41:48,956 |-WARN in Logger[org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator] - No appenders present in context [default] for logger [org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator].
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Will scan for changes in [file:/D:/code_local/fmt/websocket/web/target/classes/config/logback-spring.xml]
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeTask scanning period to 1 minutes
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.ContextNameAction - Setting logger context name as [logback]
17:41:48,956 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@333291e3 - Adding [jar:file:/D:/Maven/repository/org/springframework/boot/spring-boot/2.0.1.RELEASE/spring-boot-2.0.1.RELEASE.jar!/org/springframework/boot/logging/logback/defaults.xml] to configuration watch list.
17:41:48,956 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@479d31f3 - URL [jar:file:/D:/Maven/repository/org/springframework/boot/spring-boot/2.0.1.RELEASE/spring-boot-2.0.1.RELEASE.jar!/org/springframework/boot/logging/logback/defaults.xml] is not of type file
17:41:48,956 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word clr with class [org.springframework.boot.logging.logback.ColorConverter]
17:41:48,956 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word wex with class [org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter]
17:41:48,956 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word wEx with class [org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter]
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.catalina.startup.DigesterFactory] to ERROR
17:41:48,956 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating ERROR level on Logger[org.apache.catalina.startup.DigesterFactory] onto the JUL framework
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.catalina.util.LifecycleBase] to ERROR
17:41:48,956 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating ERROR level on Logger[org.apache.catalina.util.LifecycleBase] onto the JUL framework
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.coyote.http11.Http11NioProtocol] to WARN
17:41:48,956 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating WARN level on Logger[org.apache.coyote.http11.Http11NioProtocol] onto the JUL framework
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.sshd.common.util.SecurityUtils] to WARN
17:41:48,956 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating WARN level on Logger[org.apache.sshd.common.util.SecurityUtils] onto the JUL framework
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.tomcat.util.net.NioSelectorPool] to WARN
17:41:48,956 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating WARN level on Logger[org.apache.tomcat.util.net.NioSelectorPool] onto the JUL framework
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.eclipse.jetty.util.component.AbstractLifeCycle] to ERROR
17:41:48,956 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating ERROR level on Logger[org.eclipse.jetty.util.component.AbstractLifeCycle] onto the JUL framework
17:41:48,956 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.hibernate.validator.internal.util.Version] to WARN
17:41:48,956 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating WARN level on Logger[org.hibernate.validator.internal.util.Version] onto the JUL framework
17:41:48,971 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@333291e3 - Adding [jar:file:/D:/Maven/repository/org/springframework/boot/spring-boot/2.0.1.RELEASE/spring-boot-2.0.1.RELEASE.jar!/org/springframework/boot/logging/logback/console-appender.xml] to configuration watch list.
17:41:48,971 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@479d31f3 - URL [jar:file:/D:/Maven/repository/org/springframework/boot/spring-boot/2.0.1.RELEASE/spring-boot-2.0.1.RELEASE.jar!/org/springframework/boot/logging/logback/console-appender.xml] is not of type file
17:41:48,971 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
17:41:48,971 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
17:41:48,971 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
17:41:49,002 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@333291e3 - Adding [jar:file:/D:/Maven/repository/org/springframework/boot/spring-boot/2.0.1.RELEASE/spring-boot-2.0.1.RELEASE.jar!/org/springframework/boot/logging/logback/file-appender.xml] to configuration watch list.
17:41:49,002 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@479d31f3 - URL [jar:file:/D:/Maven/repository/org/springframework/boot/spring-boot/2.0.1.RELEASE/spring-boot-2.0.1.RELEASE.jar!/org/springframework/boot/logging/logback/file-appender.xml] is not of type file
17:41:49,002 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
17:41:49,002 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
17:41:49,002 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
17:41:49,002 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1434234664 - Archive files will be limited to [10 MB] each.
17:41:49,018 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1434234664 - Will use gz compression
17:41:49,018 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1434234664 - Will use the pattern logs/spring.log.%d{yyyy-MM-dd}.%i for the active file
17:41:49,018 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5b12b668 - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/spring.log.%d{yyyy-MM-dd}.%i.gz'.
17:41:49,018 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5b12b668 - Roll-over at midnight.
17:41:49,018 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5b12b668 - Setting initial period to Fri Apr 20 17:40:01 CST 2018
17:41:49,018 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: logs/spring.log
17:41:49,018 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [logs/spring.log]
17:41:49,018 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.classic.AsyncAppender]
17:41:49,018 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ASYNC]
17:41:49,018 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to ch.qos.logback.classic.AsyncAppender[ASYNC]
17:41:49,018 |-INFO in ch.qos.logback.classic.AsyncAppender[ASYNC] - Attaching appender named [FILE] to AsyncAppender.
17:41:49,018 |-INFO in ch.qos.logback.classic.AsyncAppender[ASYNC] - Setting discardingThreshold to 0
17:41:49,018 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework.boot] to ERROR
17:41:49,018 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating ERROR level on Logger[org.springframework.boot] onto the JUL framework
17:41:49,018 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.hibernate.SQL] to ERROR
17:41:49,018 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating ERROR level on Logger[org.hibernate.SQL] onto the JUL framework
17:41:49,018 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
17:41:49,018 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating ERROR level on Logger[ROOT] onto the JUL framework
17:41:49,018 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
17:41:49,018 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ASYNC] to Logger[ROOT]
17:41:49,034 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.ibatis] to DEBUG
17:41:49,034 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating DEBUG level on Logger[org.apache.ibatis] onto the JUL framework
17:41:49,034 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [java.sql] to DEBUG
17:41:49,034 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating DEBUG level on Logger[java.sql] onto the JUL framework
17:41:49,034 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
17:41:49,034 |-INFO in org.springframework.boot.logging.logback.SpringBootJoranConfigurator@185a6e9 - Registering current configuration as safe fallback point
17:41:49,034 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating DEBUG level on Logger[org.springframework.boot] onto the JUL framework
17:41:49,034 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating DEBUG level on Logger[org.hibernate.SQL] onto the JUL framework
17:41:49,034 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@1d9b7cce - Propagating ERROR level on Logger[org] onto the JUL framework北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國制造2025”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級(jí)產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺(tái)面向?qū)ο箝_發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。