haiwen / seafile-client

Seafile desktop client.
http://seafile.com
Apache License 2.0
477 stars 282 forks source link

Feature request: Disable / limit size for log files #1342

Open r4dh4l opened 3 years ago

r4dh4l commented 3 years ago

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!

mqus commented 2 years ago

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.

killing commented 1 year ago

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

r4dh4l commented 1 year ago

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$
APz commented 1 year ago

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.