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

Empty old logs #80

Open
lapineige opened this issue Apr 14, 2020 · 2 comments
Open

Empty old logs #80

lapineige opened this issue Apr 14, 2020 · 2 comments

Comments

@lapineige
Copy link
Member

Problem

appdirectory/var/logs/prod.log file contains all logs since installation.
This is unnecessary, and after a while it can take quite some disk space (90MB in 3 years for instance).

Solution

We need to implement a solution to empty those old logs on a regular basis (is logrotate the good tool for that purpose ?), for instance via a cron job every month.
Does wallabag provide such a tool in command line ? 🤔
In my opinion 6 months logs history is a fair value.

@maniackcrudelis
Copy link
Contributor

Indeed the install script lack a logrotate configuration

ynh_use_logrotate can help handle that easily

@lapineige
Copy link
Member Author

lapineige commented Apr 14, 2020

I just saw that minor issue, I don't have time to work on this and I'd not say it's a priority (but a nice addition), yet if anyone want to help here, feel free to contribute :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants