<html><body bgcolor="#FFFFFF"><div>That's quite an old version you're using. Can't you upgrade?</div><div><br></div><div>Did you try stepping through the source?</div><div><br></div><div>David<br><br>On 12 Jul 2011, at 17:36, Sakho Meissa <<a href="mailto:meissa.sakho@natixis.com">meissa.sakho@natixis.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Hi all,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">I’m tearing my hairs off to understand why the RollingFileAppender
in my configuration doesn’t behave as expected.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">I’m using logBack 0.9.15 version with jboss 5.1
EAP. My configuration file is below with few remarks:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">1) The fileNamePattern I’ve set (in bold) is
supposed to create a new file file each minute.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">2) I’ve set layout instead of an encoder (which
is in pattern) because encoder in not supported in this version of logback.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">When I start the server the output seem to be ok with
my configuration and a log file named tpm-ws.log is created as expected.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">After one day of testing, there is no other file
created. All logs are still generated in the same file.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Can someone explain me what’s wrong in my
configuration?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Is the RollingFileAppender supported in the 0.9.15
version.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"><configuration
debug="true" scan="true"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"><property
name="tpm-log-file"
value="C:\\Developpement\\jboss\\jboss-5.1.0.GA\\server\\default\\conf\\confwspatio\\logs\\tpm-ws.log"
/><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <appender
name="TPM-WS-LOG"
class="ch.qos.logback.core.rolling.RollingFileAppender"> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366">
<file>${tpm-log-file}</file> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <rollingPolicy
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> </span></font><font size="2" color="#003366" face="Arial"><span style="font-size:10.0pt;font-family:
Arial;color:#003366"><!-- un nouveau fichier par jour --> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:#003366"> </span></font><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;
font-family:Arial;color:#003366"><fileNamePattern><b><span style="font-weight:bold">logFile.%d{yyyy-MM-dd-HHmm}.</span></b>log</fileNamePattern>
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> </span></font><font size="2" color="#003366" face="Arial"><span style="font-size:10.0pt;font-family:
Arial;color:#003366"><!-- garde un historique de 30 jours --> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:#003366"> </span></font><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;
font-family:Arial;color:#003366"><maxHistory>30</maxHistory> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366">
</rollingPolicy> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <maxFileSize>1MB</maxFileSize><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366">
</triggeringPolicy><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <layout
class="ch.qos.logback.classic.PatternLayout"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366">
<Pattern>%d{dd/MM/yyyy HH:mm:ss.SSS} [%thread] %-5level %logger{36} -
%msg%n</Pattern><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> </layout><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <!--<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <encoder>
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366">
<pattern>%-4relative [%thread] %-5level %logger{35} -
%msg%n</pattern> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> </encoder> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> --><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> </appender>
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <root
level="TRACE"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <appender-ref
ref="TPM-WS-LOG" /><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> </root><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <logger
name="org.springframework" level="TRACE"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> <appender-ref
ref="TPM-WS-LOG" /><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"> </logger><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"></configuration><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#003366" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:#003366">Thanks in advance.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p> </o:p></span></font></p>
<p style="margin:0cm;margin-bottom:.0001pt"><b><font size="2" color="#003399" face="Verdana"><span style="font-size:10.0pt;font-family:Verdana;color:#003399;
font-weight:bold">Meissa SAKHO</span></font></b><o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt"><b><font size="2" color="#003399" face="Verdana"><span style="font-size:10.0pt;font-family:Verdana;color:#003399;
font-weight:bold">NATIXIS</span></font></b><o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt"><font size="1" color="#003399" face="Verdana"><span style="font-size:8.0pt;font-family:Verdana;color:#003399">Systémes
d'information Achats et Logistique / Etudes -Banque Privée<o:p></o:p></span></font></p>
<p style="margin:0cm;margin-bottom:.0001pt"><font size="1" color="#003399" face="Verdana"><span style="font-size:8.0pt;font-family:Verdana;color:#003399">Tél.
: +33 1 58 32 20 88</span></font><o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt"><font size="1" color="#003399" face="Verdana"><span style="font-size:8.0pt;font-family:Verdana;color:#003399">
: +33 6 01 27 58 46</span></font><o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt"><font size="1" color="#003399" face="Verdana"><span style="font-size:8.0pt;font-family:Verdana;color:#003399"><a href="http://www.natixis.com" title="http://www.natixis.com/"><font color="#003399" title="http://www.natixis.com/"><span title="http://www.natixis.com/"><span title="http://www.natixis.com/"><span style="color:#003399">www.natixis.com</span></span></span></font></a></span></font><font size="1" color="#003399" face="Verdana"><span style="font-size:8.0pt;font-family:
Verdana;color:#003399"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<pre style="white-space:normal">L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si<br>vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si<br>necessaire.<br><br>The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is<br>prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when<br>necessary<br></pre>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Logback-user mailing list</span><br><span><a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a></span><br><span><a href="http://qos.ch/mailman/listinfo/logback-user">http://qos.ch/mailman/listinfo/logback-user</a></span><br></div></blockquote></body></html>