parseable icon indicating copy to clipboard operation
parseable copied to clipboard

Feat: The log rotation policy requires a file size limit

Open sp0cket opened this issue 1 year ago • 2 comments

There may be situations where the size of logs cannot be predicted. For example, if a bug causes an abnormal amount of logs to be generated, it could fill up the disk and crash the system. A protection mechanism is needed to limit the maximum file size and delete old logs when the file becomes too large.

sp0cket avatar May 14 '24 11:05 sp0cket

Thanks @sp0cket . We can mitigate this by allowing the log retention to work on files sizes also instead of days only. Will that work for you?

nitisht avatar May 16 '24 06:05 nitisht

I think both limits may be needed, and both may need to be cleaned up when either limit is reached.

sp0cket avatar May 16 '24 15:05 sp0cket