<br><font size=2 face="sans-serif">The max history is for setting the limit
on the file size. I want to set a cap on the index i appended.<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Clemens Siebler &lt;clemens.siebler@googlemail.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: logback-user-bounces@qos.ch</font>
<p><font size=1 face="sans-serif">04/06/2011 05:08 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
logback users list &lt;logback-user@qos.ch&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">logback users list &lt;logback-user@qos.ch&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [logback-user] Logback configuration</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Should be possible using the maxHistory parameter:<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;appender name=&quot;file&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;File&gt;test.log&lt;/File&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;encoder&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pattern&gt;...
&lt;/pattern&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/encoder&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fileNamePattern&gt;test.log.%d{yyyy-MM-dd}.%i&lt;/fileNamePattern&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;maxHistory&gt;10&lt;/maxHistory&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;timeBasedFileNamingAndTriggeringPolicy
class=&quot;ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;maxFileSize&gt;10MB&lt;/maxFileSize&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/timeBasedFileNamingAndTriggeringPolicy&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rollingPolicy&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/appender&gt;<br>
</font>
<br><font size=3>On Tue, Apr 5, 2011 at 10:22 PM, Neha Kothari &lt;</font><a href=mailto:neha.kothari@db.com><font size=3 color=blue><u>neha.kothari@db.com</u></font></a><font size=3>&gt;
wrote:</font>
<br><font size=2 face="sans-serif"><br>
Hi have started to use logback for logging in java. I am using &quot;TimeBasedRollingPolicy&quot;
rolling policy as I wanted dated logs.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
My file pattern looks like c:/spg-live.%d{yyyy-MM-dd}.%i.log</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Is there a way that I can put a maxIndex (i.e the maximum limit for i)
using the same rolling policy?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
</font><font size=3><br>
</font><font size=1 face="Arial"><br>
---</font><font size=2 face="Courier New"><br>
This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of
the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</font><font size=3><br>
_______________________________________________<br>
Logback-user mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:Logback-user@qos.ch"><font size=3 color=blue><u>Logback-user@qos.ch</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://qos.ch/mailman/listinfo/logback-user" target=_blank><font size=3 color=blue><u>http://qos.ch/mailman/listinfo/logback-user</u></font></a><font size=3><br>
</font>
<br><tt><font size=2>_______________________________________________<br>
Logback-user mailing list<br>
Logback-user@qos.ch<br>
http://qos.ch/mailman/listinfo/logback-user<br>
</font></tt>
<br>
<br>
<span style="font-family:'Arial',sans-serif; font-size:8pt; color:#000000">---</span><br>
<span style="font-family:'Courier New',monospace; font-size:10pt; color:#000000">This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</span>