<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="TR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Added to mailing list. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:TR">From:</span></b><span lang="EN-US" style="mso-fareast-language:TR"> Hasan Birol [Yazilim Gelistirme Sistemleri ve Platform Uygulamalari Bolumu]
<br>
<b>Sent:</b> Friday, October 18, 2019 2:00 PM<br>
<b>To:</b> 'logback-user@qos.ch' <logback-user@qos.ch><br>
<b>Cc:</b> Bilgehan Yildiz [Yazilim Gelistirme Sistemleri ve Platform Uygulamalari Bolumu] <Bilgehan.Yildiz@ing.com.tr>; Rafet Cambaz [Yazilim Gelistirme Sistemleri ve Platform Uygulamalari Bolumu] <Rafet.Cambaz@ing.com.tr><br>
<b>Subject:</b> About FileAppender in Logback<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dear Logback Team;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Have a problem with logback .<o:p></o:p></p>
<p class="MsoNormal">Have a logback.xml file find it below. Each thread has a single log file. However, cant recognize file is done or thread is done with looking the file. File is not locked or something (tried to lock the file by extending fileappender but
 cant succeed) . I don’t would like to write a code to get content of file which I mean, dont wanna write a some symbol to find out file is done. I have been searching it for 3 months :) I hope you help me. Many thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><appender name="SIFT" class="XXXXX.SiftingAppender"><o:p></o:p></p>
<p class="MsoNormal">    <discriminator><o:p></o:p></p>
<p class="MsoNormal">        <key>fileLocation</key><o:p></o:p></p>
<p class="MsoNormal">        <defaultValue>${user.home}\start.log</defaultValue><o:p></o:p></p>
<p class="MsoNormal">    </discriminator><o:p></o:p></p>
<p class="MsoNormal">    <sift><o:p></o:p></p>
<p class="MsoNormal">        <appender name="FILE-${fileLocation}" class="ch.qos.logback.core.FileAppender"><o:p></o:p></p>
<p class="MsoNormal">            <file>${fileLocation}</file><o:p></o:p></p>
<p class="MsoNormal">            <append>false</append><o:p></o:p></p>
<p class="MsoNormal">            <encoder><o:p></o:p></p>
<p class="MsoNormal">                <pattern>%msg%n</pattern><o:p></o:p></p>
<p class="MsoNormal">            </encoder><o:p></o:p></p>
<p class="MsoNormal">        </appender><o:p></o:p></p>
<p class="MsoNormal">    </sift><o:p></o:p></p>
<p class="MsoNormal"></appender><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I just would like to change extension when thread is done .log to .xml, or lock the file while end of the thread, or move the file end of the thread.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many many thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Have a nice day,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Q on StackOverFlow : <a href="https://stackoverflow.com/questions/58434943/why-fileappender-is-not-locking-the-file">
https://stackoverflow.com/questions/58434943/why-fileappender-is-not-locking-the-file</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hasan<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<HR><Font face=arial size=1 color=black><I>
<a href="https://www.ing.com.tr/">
<IMG src="http://image.ingbank.com.tr/EmailBanner/Greatplacetowork_v2.jpg">
</a>
</i></font>
<p><font face="Calibri" size="1">Kisiye ozel bu mesaj ve icerigindeki bilgiler gizlidir. ING bu mesajin icerigi ve ekleri ile ilgili olarak 
hukuksal hicbir sorumluluk kabul etmez. Yetkili alicilardan biri degilseniz, bu mesajin herhangi bir sekilde  
ifsa edilmesi, kullanilmasi, kopyalanmasi, yayilmasi veya mesajda yeralan hususlarla ilgili olarak herhangi bir 
islem yapilmasinin kesinlikle yasak oldugunu bildiririz. Boyle bir durumda lutfen hemen mesajin gondericisini 
bilgilendiriniz ve mesaji sisteminizden  siliniz.Internet ortaminda gonderilen e-posta mesajlarindaki hata 
ve/veya 
eksikliklerden veya viruslerden dolayi mesajin gondericisi herhangi bir sorumluluk kabul 
etmemektedir. Tesekkur ederiz.</font>
</p>
<p><font face="Calibri" size="1">The information contained in this communication may contain 
confidential or legally privileged information. ING doesn't accept any legal responsibility for the 
contents and attachments of this message. If you are not the intended recipient you are hereby notified that 
any disclosure, use, copying, distribution or taking any action in reliance on the contents of this information 
is 
strictly prohibited. If you have received this communication in error, please notify the sender immediately by 
responding to this e-mail and then delete it from your system. The sender does not accept any liability for any
errors or omissions or any viruses in the context of this message which arise as a result of internet 
transmission. Thank you.
</p>
</font>
<p> 
</p>
</body>
</html>