Skip to content

Instantly share code, notes, and snippets.

@nodje
Created September 17, 2015 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodje/415da719810bcaecc02d to your computer and use it in GitHub Desktop.
Save nodje/415da719810bcaecc02d to your computer and use it in GitHub Desktop.
logback init logging
//application startup logback.xml formatted log
...
2015-09-17 13:31:49.056 INFO 22580 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
//logback-access init log starts with a different pattern
13:31:49,711 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - debug attribute not set
13:31:49,714 |-INFO in ch.qos.logback.core.joran.action.StatusListenerAction - Added status listener of type [ch.qos.logback.core.status.OnConsoleStatusListener]
13:31:49,715 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
13:31:49,715 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [querydiff]
13:31:49,752 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.access.boolex.JaninoEventEvaluator] for [evaluator] property
13:31:49,774 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.core.boolex.Matcher] for [matcher] property
13:31:49,815 |-INFO in ch.qos.logback.access.boolex.JaninoEventEvaluator@4fa3ffe0 - Adding [return] prefix and a semicolon suffix. Expression becomes [return url.matches(event.getRequestURL().toString());]
13:31:49,815 |-INFO in ch.qos.logback.access.boolex.JaninoEventEvaluator@4fa3ffe0 - See also http://logback.qos.ch/codes.html#block
13:31:50,031 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use zip compression
13:31:50,032 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logs/querydiff-access.%d{yyyy-MM-dd}.log for the active file
13:31:50,033 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/querydiff-access.%d{yyyy-MM-dd}.log.zip'.
13:31:50,033 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
13:31:50,034 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Thu Sep 17 12:44:43 CST 2015
13:31:50,034 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.access.PatternLayoutEncoder] for [encoder] property
13:31:50,069 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[querydiff] - Active log file name: logs/querydiff-access.log
13:31:50,069 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[querydiff] - File property is set to [logs/querydiff-access.log]
13:31:50,070 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [querydiff] to ch.qos.logback.access.tomcat.LogbackValve[]
13:31:50,070 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - End of configuration.
13:31:50,070 |-INFO in ch.qos.logback.access.joran.JoranConfigurator@5814c52f - Registering current configuration as safe fallback point
13:31:49,711 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - debug attribute not set
13:31:49,714 |-INFO in ch.qos.logback.core.joran.action.StatusListenerAction - Added status listener of type [ch.qos.logback.core.status.OnConsoleStatusListener]
13:31:49,715 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
13:31:49,715 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [querydiff]
13:31:49,752 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.access.boolex.JaninoEventEvaluator] for [evaluator] property
13:31:49,774 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.core.boolex.Matcher] for [matcher] property
13:31:49,815 |-INFO in ch.qos.logback.access.boolex.JaninoEventEvaluator@4fa3ffe0 - Adding [return] prefix and a semicolon suffix. Expression becomes [return url.matches(event.getRequestURL().toString());]
13:31:49,815 |-INFO in ch.qos.logback.access.boolex.JaninoEventEvaluator@4fa3ffe0 - See also http://logback.qos.ch/codes.html#block
13:31:50,031 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use zip compression
13:31:50,032 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logs/querydiff-access.%d{yyyy-MM-dd}.log for the active file
13:31:50,033 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/querydiff-access.%d{yyyy-MM-dd}.log.zip'.
13:31:50,033 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
13:31:50,034 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Thu Sep 17 12:44:43 CST 2015
13:31:50,034 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.access.PatternLayoutEncoder] for [encoder] property
13:31:50,069 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[querydiff] - Active log file name: logs/querydiff-access.log
13:31:50,069 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[querydiff] - File property is set to [logs/querydiff-access.log]
13:31:50,070 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [querydiff] to ch.qos.logback.access.tomcat.LogbackValve[]
13:31:50,070 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - End of configuration.
13:31:50,070 |-INFO in ch.qos.logback.access.joran.JoranConfigurator@5814c52f - Registering current configuration as safe fallback point
//application startup logback.xml formatted log continues
2015-09-17 13:31:50.138 INFO 22580 --- [ost-startStop-1] com.company.api.userinfo.Application : Running with Spring profile(s) : [dev]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment