Page 1 of 2

[Feature Request] Rotate logs without deletion

Posted: 06 Apr 2020, 05:08
by shanester
Option to rotate logs WITHOUT delete

Re: [Feature Request] Rotate logs without deletion

Posted: 07 Apr 2020, 12:55
by hugbug
Set option RotateLog to a large value such as 10000 (days).

Re: [Feature Request] Rotate logs without deletion

Posted: 08 Apr 2020, 16:24
by shanester
My request is that the rotation of log files has an option with no delete. I want be able to effectively manage the log files. Today I have one large log file which is unmanageable due to its size. So for example, if I set the log rotation for 30 days, I do not want to delete the previous log file, but start a new log file. The log file name should include the created date stamp.

Re: [Feature Request] Rotate logs without deletion

Posted: 08 Apr 2020, 18:56
by hugbug
Log rotation in nzbget means that for every day a new log-file is created. Older files are deleted according to option RotateLog. If you set it to a large value the log-files will never be deleted. That's what you were asking.

Re: [Feature Request] Rotate logs without deletion

Posted: 08 Apr 2020, 21:38
by shanester
Yes, Rotate without Delete option.

Today, my logs are appending. If I change the setting to Rotate, the existing log file gets deleted.
I want to prevent the deletion of logs from occurring.

Current log file name: nzbget.log
Suggested log file name upon rotation: nzbget-yyyy.mm.dd.hh.mm.log

Re: [Feature Request] Rotate logs without deletion

Posted: 08 Apr 2020, 22:45
by hugbug
Set option RotateLog to a large value such as 10000 (days). Have you tried that? That should work.

Re: [Feature Request] Rotate logs without deletion

Posted: 09 Apr 2020, 15:15
by shanester
How does your suggestion address my Feature Request? Logs will still get deleted. I do NOT want logs deleted and would like the option to retain them vs delete.
Image

Re: [Feature Request] Rotate logs without deletion

Posted: 09 Apr 2020, 15:28
by hugbug
Because 10000 days is a long time, which in practice means that the logs will never be deleted. The log-files must be 10000 days old (27 years) to be deleted.

Re: [Feature Request] Rotate logs without deletion

Posted: 09 Apr 2020, 16:27
by shanester
Currently my setting is Append which basically will do the same thing except it wont delete.
My log file is 5GB and is unmanageable. Your suggestion does NOT address my Feature request, "Rotating logs without delete option"

Again, this is a Feature Request NOT a bug. I'm not sure why we are going back and forth.
If my request requirements are not clear, please let me know.

Re: [Feature Request] Rotate logs without deletion

Posted: 09 Apr 2020, 17:05
by hugbug
Option RotateLog does not define how many days to write into one file. With log rotation a new log file is always created every day. Option RotateLog defines when the old files beginning to be deleted. If that option is set to a very long value, the files will never be deleted.