<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">I need your help in creating log files by LOGBACK on LINUX environment, version 1.1.4.</span></span></div><div><span class="gmail-jCAhz" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">
</span></span><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">When starting the application server, it generates  symbolic links between /proc/<PID>/fd/<NUM> to /appli/test/log/server_fonc.log, appli/test/log/application.log, .</span></span><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">..</span></span></div><div><span class="gmail-jCAhz" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">
</span></span><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">When using the LOGBACK rollover, for example, on the hast file, the application.log.5 file is deleted but it nevertheless generated a symbolic link between "/proc/<PID>/fd/<NUM>" and "/appli/test/log/</span></span><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">application.log.5".</span></span><span style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"> </span></div><div><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">Suddenly, I end up with a broken symbolic link and a message "/appli/test/log/application.log.5 (deleted)" via the command "lsof -nP +L1 | grep java"</span></span></div><div><span class="gmail-jCAhz" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">
</span></span><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">For what?</span></span><span style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"> </span><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">Is this a logback issue?</span></span><span style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"> </span><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">Or, an OS problem?</span></span></div><div><span class="gmail-jCAhz" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">
</span></span><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">Thank you in advance for your help ;)</span></span><br></div><div><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb"><br></span></span></div><div><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb">Example Configuration Logback for server_fonc.log :</span></span></div><div>      <font color="#3c4043" face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="white-space-collapse: preserve;"><appender name="GENERAL_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
                <file>/application/test/log/applicatif.log</file>
                <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
                        <level>TRACE</level>
                </filter>
                <encoder>
                        <Pattern>%d;%level;%X{adresseIp};%X{sessionId};%X{Art
ifactId};%X{Version};%logger;%marker;%m%n%ex{full}</Pattern>
                </encoder>
                <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
                        <fileNamePattern>/appli/test/log/applicatif.log.%i</fileNamePattern>
                        <minIndex>1</minIndex>
                        <maxIndex>5</maxIndex>
                </rollingPolicy>
                <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
                        <maxFileSize>10MB</maxFileSize>
                </triggeringPolicy>
        </appender>


<br></span></font></div><div><br></div><div><span class="gmail-jCAhz gmail-ChMk0b" style="color:rgb(60,64,67);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;background-color:rgb(245,245,245)"><span class="gmail-ryNqvb"><br></span></span></div><div></div></div></div></div></div></div></div>