seafile-client icon indicating copy to clipboard operation
seafile-client copied to clipboard

Feature request: Disable / limit size for log files

Open r4dh4l opened this issue 4 years ago • 4 comments

Hi,

it would be great to have an option to disable logging or at least limit the size for log files in Seafile client options (the seafile client is somehow a "fire and forget" software but after some months ~/.ccnet/logs/seafile.log on my system (Debian 10) has a size around 100MB).

Thx for Seafile!

r4dh4l avatar Feb 02 '21 01:02 r4dh4l

For some reason, a similar ticket (#393) was closed for no reason. I have the same issue (~300mb combined on arch linux) and log rotation (or at least compression) would go a long way.

mqus avatar Oct 22 '22 16:10 mqus

The log files will be rotated when the client is restarted.

killing avatar Jan 22 '23 13:01 killing

The log files will be rotated when the client is restarted.

Somehow this is not the case for Linux Client 7.0.10 (Debian 11):

r4dh4l@nb:~/.ccnet/logs$ ls -la
total 40568
drwxr-xr-x 1 r4dh4l r4dh4l      832 Sep 18 04:41 .
drwx------ 1 r4dh4l r4dh4l     1176 Sep 14 03:20 ..
-rw-r--r-- 1 r4dh4l r4dh4l  1789967 Jan 25 11:54 applet.log
-rw-r--r-- 1 r4dh4l r4dh4l 39699789 Jan 25 11:53 seafile.log
r4dh4l@nb:~/.ccnet/logs$

r4dh4l avatar Jan 25 '23 10:01 r4dh4l

I'm running the now current version (9.0.3) of the client and it does not rotate the log on restart. In some cases the logs can get extremely large and it's not reasonable to expect an average user to dig into a hidden log directory to sort out a log file that will grow forever.

I've observed this behavior on both, Linux and Mac. Most likely it's on Windows too.

APz avatar Jul 31 '23 23:07 APz