Compress application log files
Adds opencraft.logging.GzipRotatingFileHandler
, which gzips the instance manager's rotated log files.
Testing Instructions
- Set
LOGGING_ROTATE_MAX_KBYTES=1
in your local OpenCraft IM .env file - this is to trigger log rotation without needing to generate huge logs. - Run
make rundev
, and refresh http://localhost:5000/ several times. - Ensure that
.gz
log files are created in underlogs/
- Ensure that you can
gunzip
and read them.