[logback-user] HELP! Need help while deleting logback file (broken symlink - Linux)

Arnaud B. boinarnaud at gmail.com
Wed Jun 21 10:38:55 CEST 2023


I need your help in creating log files by LOGBACK (v 1.1.4) on LINUX

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, ...

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/application.log.5".

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"

For what? Is this a logback issue? Or, an OS problem? Any solution? Thank
you in advance for your help ;)

Example Configuration Logback for server_fonc.log :
name="GENERAL_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
             <filter class="ch.qos.logback.classic.filter.ThresholdFilter">

 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">


<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">


Arnaud BOIN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20230621/5efad58e/attachment.htm>

More information about the logback-user mailing list