[Webservice] Common log directory, rotate log files weekly
Description
We want to limit how much space logs take up, but also potentially keep logs for longer than deployments, if we're doing new deployments quickly.
This puts the logs in a common folder ~/webservice-logs
, shared for all deployments. There should only be one running at a time. It should start a new log file every week (at midday on Tuesday), gzip the previous log file, and keep 8 weeks of logs. That's an arbitrarily chosen value that seems likely to be safe; we could probably increase it. We could also send logs to something like Graylog, if we wanted to keep them for a lot longer.
How Has This Been Tested?
Deployed on max-exfl-cal002 - logs go where I expected, although they haven't rolled over yet.
Types of changes
- New feature (non-breaking change which adds functionality)
Checklist:
- My code follows the code style of this project.