<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
This actually happens only when launch within my IDEA (Jetrains).<br>
the same command, `mvn spring-boot:run` doesn't produce the problem
when run in an terminal.<br>
<div class="moz-forward-container"><br>
Here's an IDEA support thread fof the follow-up:
<a class="moz-txt-link-freetext" href="https://devnet.jetbrains.com/thread/473065">https://devnet.jetbrains.com/thread/473065</a><br>
<br>
Cheers<br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Return-Path:
</th>
<td><a class="moz-txt-link-rfc2396E" href="mailto:coolnodje@gmail.com"><coolnodje@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Received:
</th>
<td>from asura.local (85-234-144-9.static.as29550.net.
[85.234.144.9]) by smtp.googlemail.com with ESMTPSA id
f5sm1946548pas.23.2015.09.17.00.28.04 for
<a class="moz-txt-link-rfc2396E" href="mailto:logback-user@qos.ch"><logback-user@qos.ch></a> (version=TLSv1.2
cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17
Sep 2015 00:28:08 -0700 (PDT)</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:logback-user@qos.ch">logback-user@qos.ch</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>coolnodje <a class="moz-txt-link-rfc2396E" href="mailto:coolnodje@gmail.com"><coolnodje@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>How to control logback-access.xml initialization log?</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">X-Enigmail-Draft-Status:
</th>
<td>N1110</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Message-ID:
</th>
<td><a class="moz-txt-link-rfc2396E" href="mailto:55FA6B7E.8050907@gmail.com"><55FA6B7E.8050907@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Thu, 17 Sep 2015 15:27:58 +0800</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">User-Agent:
</th>
<td>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0)
Gecko/20100101 Thunderbird/38.2.0</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">MIME-Version:
</th>
<td>1.0</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Content-Type:
</th>
<td>text/plain; charset=utf-8</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Content-Transfer-Encoding:
</th>
<td>7bit</td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Hi,
I'm using both logback-access.xml and logback.xml in a Spring boot
application.
I have
<logger name="ch.qos.logback" level="WARN" />
set in the logback-spring.xml but on application startup I get the
following log:
//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
<a class="moz-txt-link-freetext" href="http://logback.qos.ch/codes.html#block">http://logback.qos.ch/codes.html#block</a>
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
<a class="moz-txt-link-freetext" href="http://logback.qos.ch/codes.html#block">http://logback.qos.ch/codes.html#block</a>
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.ptmind.api.userinfo.Application : Running with Spring
profile(s) : [dev]
Logback-access init code doesn't seem to log through the configured
logback instance.
I hope the problem is clear.
Best
</pre>
<br>
</div>
<br>
</body>
</html>