AB Truncate Debug Log

AB Truncate Debug Log

arnaudbroes

This simple plugin schedules a cron job that will truncate the debug log file to a certain number of lines (default: 5,000 lines) after the file reaches a certain size (default: 10MB). No user interaction is required.
This is to prevent the debug log file from growing too large and taking up too much space on the server.

Two filters can be used to change the default values:

  • ab_truncate_debug_log_max_size to change the maximum size of the debug log file (in MB).
  • ab_truncate_debug_log_lines to change the number of lines the debug log file is truncated to.

New in Version 1.0.0

Initial release.

Reviews

0 out of 5 stars

  • Version: 1.0.0
  • Last updated: 9 months ago
  • Active installations: 0
  • WordPress version: 4.9.0
  • Tested up to: 6.3.5
  • PHP version: 7.4