Closed slrslr closed 2 months ago
This isn't possible with logrotate? You can also use time variables in the log file/directory names and then clean up the old log files.
Writing an extension to handle this might also be possible. I don't really want to implement this in the application itself as there are many alternative ways to achieve this.
On Linux Debian, in /home/user/app/airdcpp-webclient/config/Logs/ contained more than 1 year worth of files. This is not practical, not necessary. I have tried to set its rotation inside a file: sudo nano /etc/logrotate.d/rsyslog It worked. My file is:
One have to use absolute path, no $HOME variable inside the path.
Can you please by default preserve only limited amount if the logs? I think that the log level should be warnings and errors (if multiple levels can be defined). Also it may be sufficing to retain only like 1 month.