title: spring boot logback rolling file append-er not working
body: <p>I am developing a spring boot application, where I am reading the logback configuration from a YML file which is in Consul . Following are the configuration I have used in the YML file.</p>
  
  <pre><code>logging:
    file: ./logs/application.log
    pattern:
      console: "%d %-5level %logger : %msg%n"
      file: "%d %-4relative [%thread] %-5level %logger{35} - %msg%n"
    level:
      org.springframework.web: ERROR
      com.myapp.somepackage: DEBUG
    appenders:
      logFormat: "%d %-4relative [%thread] %-5level %logger{35} - %msg%n"
      currentLogFilename: ./logs/application.log
      archivedLogFilenamePattern: ./logs/application-%d{yyyy-MM-dd}-%i.log.gz
      archivedFileCount: 7
      timeZone: UTC
      maxFileSize: 30KB
      maxHistory: 30 
  </code></pre>
  
  <p>Now the log files are generated, but the rolling appender is not working, any help on this, I am seraching for something similar like following when we perform rolling appender froma logback.xml file</p>
  
  <pre><code>&lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
      &lt;!-- daily rollover. Make sure the path matches the one in the file element or else
       the rollover logs are placed in the working directory. --&gt;
      &lt;fileNamePattern&gt;./logs/myapp/application_%d{yyyy-MM-dd}.%i.log&lt;/fileNamePattern&gt;
  
      &lt;timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"&gt;
          &lt;maxFileSize&gt;5MB&lt;/maxFileSize&gt;
      &lt;/timeBasedFileNamingAndTriggeringPolicy&gt;
      &lt;!-- keep 30 days' worth of history --&gt;
      &lt;maxHistory&gt;30&lt;/maxHistory&gt;
  &lt;/rollingPolicy&gt;
  </code></pre>
  
  <p>The same I need to configure from a YML file </p>