[Feature Request] Rotate logs without deletion

Discuss newly added features or request new features.
shanester
Posts: 7
Joined: 05 Apr 2020, 21:01

[Feature Request] Rotate logs without deletion

Post by shanester » 06 Apr 2020, 05:08

Option to rotate logs WITHOUT delete

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [Feature Request] Rotate logs without deletion

Post by hugbug » 07 Apr 2020, 12:55

Set option RotateLog to a large value such as 10000 (days).

shanester
Posts: 7
Joined: 05 Apr 2020, 21:01

Re: [Feature Request] Rotate logs without deletion

Post by shanester » 08 Apr 2020, 16:24

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.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [Feature Request] Rotate logs without deletion

Post by hugbug » 08 Apr 2020, 18:56

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.

shanester
Posts: 7
Joined: 05 Apr 2020, 21:01

Re: [Feature Request] Rotate logs without deletion

Post by shanester » 08 Apr 2020, 21:38

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

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [Feature Request] Rotate logs without deletion

Post by hugbug » 08 Apr 2020, 22:45

Set option RotateLog to a large value such as 10000 (days). Have you tried that? That should work.

shanester
Posts: 7
Joined: 05 Apr 2020, 21:01

Re: [Feature Request] Rotate logs without deletion

Post by shanester » 09 Apr 2020, 15:15

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

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [Feature Request] Rotate logs without deletion

Post by hugbug » 09 Apr 2020, 15:28

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.

shanester
Posts: 7
Joined: 05 Apr 2020, 21:01

Re: [Feature Request] Rotate logs without deletion

Post by shanester » 09 Apr 2020, 16:27

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.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [Feature Request] Rotate logs without deletion

Post by hugbug » 09 Apr 2020, 17:05

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests