title: Create 2 log file in Springboot
body: <p>I creating multiple log file in <code>Springboot</code> , <code>log-back.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;property name="HOME" value="./logs" /&gt;
      &lt;appender name="SYSLOG" class="ch.qos.logback.classic.net.SyslogAppender"&gt;--&gt;
          &lt;syslogHost&gt;10.0.3.20&lt;/syslogHost&gt;
          &lt;facility&gt;SYSLOG&lt;/facility&gt;
          &lt;suffixPattern&gt;abc [%thread] %logger %msg&lt;/suffixPattern&gt;
      &lt;/appender&gt;
      &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;layout class="ch.qos.logback.classic.PatternLayout"&gt;
          &lt;Pattern&gt;
          %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
          &lt;/Pattern&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
      &lt;appender name="FILE-AUDIT" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
          &lt;file&gt;${HOME}/abc.log&lt;/file&gt;
          &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
              &lt;!-- daily rollover --&gt;
              &lt;fileNamePattern&gt;${HOME}/abc.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
              &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%relative [%thread] %-5level %logger{35} - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  </code></pre>
  
  <p>‌</p>
  
  <pre><code>// another log file 
      &lt;appender name="FILE"   class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
          &lt;file&gt;${HOME}mon.log&lt;/file&gt;
          &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
              &lt;!-- daily rollover --&gt;
              &lt;fileNamePattern&gt;${HOME}/mon.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
              &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%relative [%thread] %-5level %logger{35} - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;logger name="com.rh.project" level="debug"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
          &lt;appender-ref ref="SYSLOG" /&gt;
          &lt;appender-ref ref="FILE-AUDIT" /&gt;
      &lt;/logger&gt;
      &lt;logger name="mail-log" level="debug"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
          &lt;appender-ref ref="SYSLOG" /&gt;
          &lt;appender-ref ref="FILE" /&gt;
      &lt;/logger&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>When I check inside log directory, I only saw <code>abc.log</code> , but no <code>mon.log</code></p>