rolling in logback logging is not working
<p>I am trying to create logger policy in a spring based project.</p>

<p>The issue I am facing is related to rolling policy. the <strong>logfile.log</strong> is created and is working fine but the rolling file <strong>rollingfile.log.%d{yyyy-MM-dd}.log</strong> is not created.</p>

<p><strong>Note</strong> : In below logger I wish to created a rolling policy which creates a <strong>new file when</strong> <strong>rollingfile.log exceds more than 10 Mb</strong>. So I can have backup of logs without having one single huge logger file. Is there any way to do that?</p>

<p>Given below is my <strong>logback.xml</strong>. </p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;configuration debug="true" scan="true" scanPeriod="30 seconds"&gt;
        &lt;property name="LOG_PATH" value="D:/coinLogs" /&gt;
        &lt;property name="LOG_ARCHIVE" value="${LOG_PATH}/archive" /&gt;

        &lt;appender name="Console-Appender" class="ch.qos.logback.core.ConsoleAppender"&gt;
            &lt;layout&gt;
                &lt;pattern&gt;[%d{yyyy-MM-dd HH:mm:ss}] - [%X{requestId}] - %p %c -- %m%n
                &lt;/pattern&gt;
            &lt;/layout&gt;
        &lt;/appender&gt;

        &lt;appender name="File-Appender" class="ch.qos.logback.core.FileAppender"&gt;
            &lt;file&gt;${LOG_PATH}/logfile.log&lt;/file&gt;
            &lt;encoder&gt;
                &lt;pattern&gt;[%d{yyyy-MM-dd HH:mm:ss}] - [%X{requestId}] - %p %c -- %m%n
                &lt;/pattern&gt;
                &lt;outputPatternAsHeader&gt;true&lt;/outputPatternAsHeader&gt;
            &lt;/encoder&gt;
        &lt;/appender&gt;

        &lt;appender name="RollingFile-Appender"
            class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
            &lt;file&gt;${LOG_PATH}/rollingfile.log&lt;/file&gt;
            &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
                &lt;fileNamePattern&gt;${LOG_ARCHIVE}/rollingfile.log%d{yyyy-MM-dd}.log
                &lt;/fileNamePattern&gt;
                &lt;maxHistory&gt;30&lt;/maxHistory&gt;
                &lt;totalSizeCap&gt;10MB&lt;/totalSizeCap&gt;
            &lt;/rollingPolicy&gt;
            &lt;encoder&gt;
                &lt;pattern&gt;%msg%n&lt;/pattern&gt;
            &lt;/encoder&gt;
        &lt;/appender&gt;

        &lt;appender name="Async-Appender" class="ch.qos.logback.classic.AsyncAppender"&gt;
            &lt;appender-ref ref="RollingFile-Appender" /&gt;
        &lt;/appender&gt;

        &lt;logger name="coinPay.logbackxml" level="info" additivity="false"&gt;
            &lt;appender-ref ref="Console-Appender" /&gt;
            &lt;appender-ref ref="File-Appender" /&gt;
            &lt;appender-ref ref="Async-Appender" /&gt;
        &lt;/logger&gt;

        &lt;!-- To remove extra hibernate logs --&gt;
        &lt;logger name="org.hibernate"&gt;
            &lt;level value="info" /&gt;
        &lt;/logger&gt;

        &lt;root&gt;
            &lt;appender-ref ref="Console-Appender" /&gt;
            &lt;appender-ref ref="File-Appender" /&gt;
        &lt;/root&gt;

    &lt;/configuration&gt;
</code></pre>

<p>any help will be appreciated. Thank you in advance :D</p>