Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command to purge old logs #84

Open
jf-viguier opened this issue Dec 21, 2020 · 1 comment · May be fixed by #253
Open

Add a command to purge old logs #84

jf-viguier opened this issue Dec 21, 2020 · 1 comment · May be fixed by #253
Assignees
Labels
feature a new feature to implement

Comments

@jf-viguier
Copy link
Member

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

@SebSept
Copy link
Contributor

SebSept commented Dec 22, 2020

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 SebSept added feature a new feature to implement help wanted Extra attention is needed labels Dec 22, 2020
@SebSept SebSept self-assigned this Dec 6, 2021
@SebSept SebSept removed the help wanted Extra attention is needed label Dec 6, 2021
@SebSept SebSept linked a pull request Jun 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a new feature to implement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants