title: Logback initialization
body: <p>I start java application with this configuration to force use my configuration of logback and never write on standard output:</p>
  
  <pre><code>java -Dlogback.configurationFile=$FOLDER/logback-server.xml
  </code></pre>
  
  <p>But on start the software write logback initialization on standart output.
  Why ?</p>
  
  <p>My logback file logback-server.xml look like:</p>
  
  <pre><code>&lt;configuration debug="true"&gt;
  &lt;!-- CONSOLE appender --&gt;
  &lt;appender name="FILE-INFO" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;file&gt;myFolder/logs/-info.log&lt;/file&gt;
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
          &lt;!-- daily rollover --&gt;
          &lt;fileNamePattern&gt;info.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
          &lt;!-- keep 30 days' worth of history --&gt;
          &lt;maxHistory&gt;10&lt;/maxHistory&gt;
      &lt;/rollingPolicy&gt;
  
      &lt;layout class="ch.qos.logback.classic.PatternLayout"&gt;
          &lt;Pattern&gt;%d{dd/MM/yyyy_HH:mm:ss} [%t] %-5level %marker [%c{40}] %m%n&lt;/Pattern&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  &lt;appender name="FILE-ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;file&gt;myFolder/logs/error.log&lt;/file&gt;
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
          &lt;!-- daily rollover --&gt;
          &lt;fileNamePattern&gt;error.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
          &lt;!-- keep 30 days' worth of history --&gt;
          &lt;maxHistory&gt;10&lt;/maxHistory&gt;
      &lt;/rollingPolicy&gt;
  
      &lt;layout class="ch.qos.logback.classic.PatternLayout"&gt;
          &lt;Pattern&gt;%d{dd/MM/yyyy_HH:mm:ss} [%t] %-5level %marker [%c{40}] %m%n&lt;/Pattern&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  &lt;!-- use appenders --&gt;
  &lt;root level="ERROR"&gt;
      &lt;appender-ref ref="FILE-ERROR" /&gt;
  &lt;/root&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>and the first output is:</p>
  
  <pre><code>11:42:14,502 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [myFolder/logback-server.xml] at [file:myFolder/logback-server.xml]
  11:42:14,669 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
  11:42:14,671 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
  11:42:14,678 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE-INFO]
  </code></pre>