fop_console icon indicating copy to clipboard operation
fop_console copied to clipboard

Add a command to purge old logs

Open jf-viguier opened this issue 3 years ago • 1 comments

Some Prestashop log tables canb grow too much, this command could purge.

jf-viguier avatar Dec 21 '20 16:12 jf-viguier

Good idea.

I'm in need for this feature. With option to act on levels under a specified argument. fop:clear-log --under-level 3 : remove all logs of levels 1,2 and 3. Wording sounds not very good...

Also, as option, we can have an option like '--keep-last-24h' to avoid touching logs of the last 24h.

The command may not run without an option. --all to remove all levels, all time (except last 24h if specified)

If it's possible, it could be implemented in a way that the cleaning process can be started from a cron or a controller. new FopCleanLogCommand([1,2,3], ...)

SebSept avatar Dec 22 '20 15:12 SebSept