mail_room_json.log Housekeeping / reduce log file size
Problem to solve
The mail_room_json.log file is taking incosiderate proportions - 147MB already in my case and mainly filled with messages like
{"severity":"INFO","time":"2020-06-14 10:04:47 +0000","context":{"email":"example@example.com","name":"inbox"},"action":"Getting new messages","unread":{"count":0,"ids":[]},"to_be_delivered":{"count":0,"ids":[]}}
{"severity":"INFO","time":"2020-06-14 10:04:47 +0000","context":{"email":"example@example.com","name":"inbox"},"action":"Idling"}
{"severity":"INFO","time":"2020-06-14 10:05:47 +0000","context":{"email":"example@example.com","name":"inbox"},"action":"Processing started"}
Intended users
User experience goal
Require less resources, should make the server faster and les prone to failure due to disk fill.
Proposal
Propose a log rotation, limit messages that are logged, etc.
Further details
Limit ressource use, avoid failure.