有没有办法让logback创建使用%i的前导0的TimeBasedRollingPolicy文件名。以下是logback.xml文件的摘录
...
<rollingPolicy class="ch.quos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>logs/foo_%d{yyyyMMdd}-%i.log</fileNamePattern>
...
</rollingPolicy>
...
这将创建名为this foo_20130501-0.log,foo_20130501-1.log,... foo_20130501-9.log,foo_20130501-10.log,...
的文件相反,我想要这样命名的文件:foo_20130501-000.log,foo_20130501-001.log,... foo_20130501-009.log,foo_20130501-010.log,...