Skip to content

Compress application log files

Jillian Vogel requested to merge jill/compress-logs into master

Adds opencraft.logging.GzipRotatingFileHandler, which gzips the instance manager's rotated log files.

Testing Instructions

  1. 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.
  2. Run make rundev, and refresh http://localhost:5000/ several times.
  3. Ensure that .gz log files are created in under logs/
  4. Ensure that you can gunzip and read them.

Merge request reports